From: Adam Dickmeiss Date: Thu, 5 Oct 2006 16:13:34 +0000 (+0000) Subject: Fixed CQL term parsing: first char in unquoted terms was not prepared X-Git-Tag: YAZ.2.1.36~15 X-Git-Url: http://sru.miketaylor.org.uk/cgi-bin?a=commitdiff_plain;h=4d377a28c907f9fee3f576f32d96020fb7a8436c;p=yaz-moved-to-github.git Fixed CQL term parsing: first char in unquoted terms was not prepared for \ escaping. --- diff --git a/src/cql.y b/src/cql.y index b5077d3..b0b26e2 100644 --- a/src/cql.y +++ b/src/cql.y @@ -1,4 +1,4 @@ -/* $Id: cql.y,v 1.9 2005-06-27 22:03:59 adam Exp $ +/* $Id: cql.y,v 1.10 2006-10-05 16:13:34 adam Exp $ Copyright (C) 2002-2004 Index Data Aps @@ -286,13 +286,12 @@ int yylex(YYSTYPE *lval, void *vp) } else { - putb(lval, cp, c); - while ((c = cp->getbyte(cp->client_data)) != 0 && - !strchr(" \n()=<>/", c)) + while (c != 0 && !strchr(" \n()=<>/", c)) { if (c == '\\') c = cp->getbyte(cp->client_data); putb(lval, cp, c); + c = cp->getbyte(cp->client_data); } #if YYDEBUG printf ("got %s\n", lval->buf);