diff options
Diffstat (limited to 'chromium/third_party/libxml/src/xpath.c')
-rw-r--r-- | chromium/third_party/libxml/src/xpath.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/chromium/third_party/libxml/src/xpath.c b/chromium/third_party/libxml/src/xpath.c index d9e940827b5..67353956b72 100644 --- a/chromium/third_party/libxml/src/xpath.c +++ b/chromium/third_party/libxml/src/xpath.c @@ -11120,7 +11120,9 @@ xmlXPathCompNodeTest(xmlXPathParserContextPtr ctxt, xmlXPathTestVal *test, name = NULL; if (CUR != ')') { name = xmlXPathParseLiteral(ctxt); - CHECK_ERROR NULL; + if (name == NULL) { + XP_ERRORNULL(XPATH_EXPR_ERROR); + } *test = NODE_TEST_PI; SKIP_BLANKS; } |