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:
@@ -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
|
||||
|
8
xpath.c
8
xpath.c
@@ -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
|
||||
|
Reference in New Issue
Block a user