- 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)