1
0
mirror of https://gitlab.gnome.org/GNOME/libxml2.git synced 2025-08-08 17:42:14 +03:00

Alexey Efimov pointed out that concat('a', 'b', ) should raise a syntax

* xpath.c: Alexey Efimov pointed out that concat('a', 'b', )
  should raise a syntax error
Daniel
This commit is contained in:
Daniel Veillard
2003-01-14 16:07:16 +00:00
parent e4a07e7b77
commit 71f9d7310c
2 changed files with 19 additions and 12 deletions

View File

@@ -1,3 +1,8 @@
Tue Jan 14 17:00:08 CET 2003 Daniel Veillard <daniel@veillard.com>
* xpath.c: Alexey Efimov pointed out that concat('a', 'b', )
should raise a syntax error
Tue Jan 14 15:39:14 CET 2003 Daniel Veillard <daniel@veillard.com>
* python/libxml.c: cleanup patch from St<53>phane Bidoul

View File

@@ -7617,7 +7617,8 @@ xmlXPathCompFunctionCall(xmlXPathParserContextPtr ctxt) {
SKIP_BLANKS;
ctxt->comp->last = -1;
while (CUR != ')') {
if (CUR != ')') {
while (CUR != 0) {
int op1 = ctxt->comp->last;
ctxt->comp->last = -1;
xmlXPathCompileExpr(ctxt);
@@ -7631,6 +7632,7 @@ xmlXPathCompFunctionCall(xmlXPathParserContextPtr ctxt) {
NEXT;
SKIP_BLANKS;
}
}
PUSH_LONG_EXPR(XPATH_OP_FUNCTION, nbargs, 0, 0,
name, prefix);
NEXT;