1
0
mirror of https://gitlab.gnome.org/GNOME/libxml2.git synced 2024-12-27 03:21:26 +03:00

- xpath.c: Thomas Broyer suggested a better patch for the / arg

Daniel
This commit is contained in:
Daniel Veillard 2001-06-14 08:32:28 +00:00
parent 239d052b3d
commit 608ad0791b
2 changed files with 8 additions and 2 deletions

View File

@ -1,3 +1,7 @@
Thu Jun 14 10:31:17 CEST 2001 Daniel Veillard <Daniel.Veillard@imag.fr>
* xpath.c: Thomas Broyer suggested a better patch for the / arg
Thu Jun 14 01:01:30 CEST 2001 Daniel Veillard <Daniel.Veillard@imag.fr>
* xpath.c: bug detected by Ankh when / is used as a function arg

View File

@ -7085,8 +7085,10 @@ xmlXPathCompLocationPath(xmlXPathParserContextPtr ctxt) {
xmlXPathCompRelativeLocationPath(ctxt);
} else if (CUR == '/') {
NEXT;
/* SKIP_BLANKS; */
if ((CUR != 0) && (CUR != ')') && (CUR != ','))
SKIP_BLANKS;
if ((CUR != 0 ) &&
((IS_LETTER(CUR)) || (CUR == '_') || (CUR == '.') ||
(CUR == '@') || (CUR == '*')))
xmlXPathCompRelativeLocationPath(ctxt);
}
}