X-Git-Url: http://git.indexdata.com/?a=blobdiff_plain;f=src%2Fcclqfile.c;h=c49df6c832b2bb427bd333802f827823c85dbc4e;hb=b756b711841bac38e5b69baa51939ca9e1c01adb;hp=7583610f764c6a23f565785e739f3cdd3e1ca41a;hpb=ffe862e36b8b60b1197b223cec0b78482cbd7763;p=yaz-moved-to-github.git diff --git a/src/cclqfile.c b/src/cclqfile.c index 7583610..c49df6c 100644 --- a/src/cclqfile.c +++ b/src/cclqfile.c @@ -1,11 +1,14 @@ /* This file is part of the YAZ toolkit. - * Copyright (C) 1995-2010 Index Data + * Copyright (C) 1995-2011 Index Data * See the file LICENSE for details. */ /** * \file cclqfile.c * \brief Implements parsing of CCL qualifier specs in files */ +#if HAVE_CONFIG_H +#include +#endif #include #include @@ -83,10 +86,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);