commit | 82e4971dc2f470c9b6f19cf8b15ff32781067167 | [log] [tgz] |
---|---|---|
author | Daniel Veillard <veillard@src.gnome.org> | Thu Apr 26 14:38:03 2001 +0000 |
committer | Daniel Veillard <veillard@src.gnome.org> | Thu Apr 26 14:38:03 2001 +0000 |
tree | 3f9c9c418ab27f7724d60c697c9e36f523f608ac | |
parent | 02f077a7ae0da0dcbded84077579218b92416ab2 [diff] [blame] |
- xpath.c: fixed bug #53689 related to processing-instruction() Daniel
diff --git a/xpath.c b/xpath.c index 334d770..57cdc0a 100644 --- a/xpath.c +++ b/xpath.c
@@ -6146,10 +6146,12 @@ */ if (name != NULL) xmlFree(name); - - name = xmlXPathParseLiteral(ctxt); - CHECK_ERROR 0; - SKIP_BLANKS; + name = NULL; + if (CUR != ')') { + name = xmlXPathParseLiteral(ctxt); + CHECK_ERROR 0; + SKIP_BLANKS; + } } if (CUR != ')') { if (name != NULL)