CCL: fix parsing of ccl qualifiers aliases
authorAdam Dickmeiss <adam@indexdata.dk>
Mon, 8 Mar 2010 10:20:51 +0000 (11:20 +0100)
committerAdam Dickmeiss <adam@indexdata.dk>
Mon, 8 Mar 2010 10:20:51 +0000 (11:20 +0100)
The configuration specification for CCL qualifier aliases is now parsed
correctly.

src/cclqfile.c

index 7583610..a2bb336 100644 (file)
@@ -83,10 +83,11 @@ int ccl_qual_field2(CCL_bibset bibset, const char *cp, const char *qual_name,
 
             qlist[i++] = lead_str;
 
-            while ((t=yaz_tok_move(tp)) == YAZ_TOK_STRING)
+            while (t == YAZ_TOK_STRING)
             {
                 if (i < sizeof(qlist)/sizeof(*qlist)-1)
                     qlist[i++] = xstrdup(yaz_tok_parse_string(tp));
+                t = yaz_tok_move(tp);
             }
             qlist[i] = 0;
             yaz_tok_parse_destroy(tp);