PQF parsing: handle \\\0 sequence
[yaz-moved-to-github.git] / src / pquery.c
index a0fde12..749ce02 100644 (file)
@@ -84,7 +84,7 @@ static int query_token(struct yaz_pqf_parser *li)
     }
     while (**qptr && **qptr != sep_char)
     {
-        if (**qptr == '\\')
+        if (**qptr == '\\' && (*qptr)[1])
         {
             ++(li->lex_len);
             ++(*qptr);