1
0
mirror of https://gitlab.gnome.org/GNOME/libxml2.git synced 2025-10-20 03:52:25 +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> Tue Oct 28 16:42:16 CET 2003 Daniel Veillard <daniel@veillard.com>
* Makefile.am: cleanup * Makefile.am: cleanup

View File

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