1
0
mirror of https://gitlab.gnome.org/GNOME/libxml2.git synced 2025-10-21 14:53:44 +03:00

applied patch from Olaf Walkowiak which should fix #334104 Daniel

* xpath.c: applied patch from Olaf Walkowiak which should fix #334104
Daniel
This commit is contained in:
Daniel Veillard
2006-10-17 19:39:33 +00:00
parent c47d263049
commit c465ffc20c
2 changed files with 5 additions and 1 deletions

View File

@@ -14856,7 +14856,7 @@ xmlXPathEvalExpression(const xmlChar *str, xmlXPathContextPtr ctxt) {
pctxt = xmlXPathNewParserContext(str, ctxt);
xmlXPathEvalExpr(pctxt);
if (*pctxt->cur != 0) {
if ((*pctxt->cur != 0) || (pctxt->error != XPATH_EXPRESSION_OK)) {
xmlXPatherror(pctxt, __FILE__, __LINE__, XPATH_EXPR_ERROR);
res = NULL;
} else {