- xfree(lead_str);
- yaz_tokenizer_destroy(yt);
- ccl_qual_add_combi (bibset, qual_name, cp);
+ char *qlist[10];
+ int i = 0;
+
+ qlist[i++] = lead_str;
+
+ while ((t=yaz_tok_move(tp)) == YAZ_TOK_STRING)
+ {
+ if (i < sizeof(qlist)/sizeof(*qlist)-1)
+ qlist[i++] = xstrdup(yaz_tok_parse_string(tp));
+ }
+ qlist[i] = 0;
+ yaz_tok_parse_destroy(tp);
+ ccl_qual_add_combi (bibset, qual_name, (const char **) qlist);
+ for (i = 0; qlist[i]; i++)
+ xfree(qlist[i]);