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:
parent
72b9e29edf
commit
ae9733aeaf
@ -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
|
||||
|
6
xpath.c
6
xpath.c
@ -10766,6 +10766,12 @@ 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
|
||||
|
Loading…
x
Reference in New Issue
Block a user