1
0
mirror of https://gitlab.gnome.org/GNOME/libxml2.git synced 2025-01-12 09:17:37 +03:00

- xpath.c: fixed bug #53689 related to processing-instruction()

Daniel
This commit is contained in:
Daniel Veillard 2001-04-26 14:38:03 +00:00
parent 02f077a7ae
commit 82e4971dc2
2 changed files with 10 additions and 4 deletions

View File

@ -1,3 +1,7 @@
Thu Apr 26 16:35:53 CEST 2001 Daniel Veillard <Daniel.Veillard@imag.fr>
* xpath.c: fixed bug #53689 related to processing-instruction()
Thu Apr 26 12:57:58 CEST 2001 Daniel Veillard <Daniel.Veillard@imag.fr>
* DOCBparser.c: patche from László Kovács

10
xpath.c
View File

@ -6146,10 +6146,12 @@ xmlXPathCompNodeTest(xmlXPathParserContextPtr ctxt, xmlXPathTestVal *test,
*/
if (name != NULL)
xmlFree(name);
name = xmlXPathParseLiteral(ctxt);
CHECK_ERROR 0;
SKIP_BLANKS;
name = NULL;
if (CUR != ')') {
name = xmlXPathParseLiteral(ctxt);
CHECK_ERROR 0;
SKIP_BLANKS;
}
}
if (CUR != ')') {
if (name != NULL)