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

applied patch from nico@xtradyne.com for #125030 Daniel

* xpath.c: applied patch from nico@xtradyne.com for #125030
Daniel
This commit is contained in:
Daniel Veillard 2003-10-28 19:02:21 +00:00
parent 72b9e29edf
commit ae9733aeaf
2 changed files with 11 additions and 1 deletions

View File

@ -1,3 +1,7 @@
Tue Oct 28 19:54:37 CET 2003 Daniel Veillard <daniel@veillard.com>
* xpath.c: applied patch from nico@xtradyne.com for #125030
Tue Oct 28 16:42:16 CET 2003 Daniel Veillard <daniel@veillard.com>
* Makefile.am: cleanup

View File

@ -10765,7 +10765,13 @@ xmlXPathCompile(const xmlChar *str) {
ctxt = xmlXPathNewParserContext(str, NULL);
xmlXPathCompileExpr(ctxt);
if( ctxt->error != XPATH_EXPRESSION_OK )
{
xmlXPathFreeParserContext(ctxt);
return (0);
}
if (*ctxt->cur != 0) {
/*
* aleksey: in some cases this line prints *second* error message