X-Git-Url: http://git.indexdata.com/?p=yaz-moved-to-github.git;a=blobdiff_plain;f=src%2Fcclfind.c;h=2c8c9fa1ac46ec880c5791bddbd3487da6705675;hp=beec79328e2e8ce1069e09552776d8ab496f7eb6;hb=1a219938c1325105582cdbc2c9a34b6fc3cdf191;hpb=c95d4ba97774c6feff8579544c36bf22b5d35976 diff --git a/src/cclfind.c b/src/cclfind.c index beec793..2c8c9fa 100644 --- a/src/cclfind.c +++ b/src/cclfind.c @@ -439,7 +439,7 @@ static struct ccl_rpn_node *ccl_term_one_use(CCL_parser cclp, { struct ccl_rpn_attr *attr; for (attr = ccl_qual_get_attr(qa[i]); attr; attr = attr->next) - if (attr->type != 1 || attr == attr_use) + if (attr->type != 1 || !attr_use || attr == attr_use) { switch (attr->kind) {