patch from Richard Jinks to fix a problem introduced in the previous patch

* xpath.c: patch from Richard Jinks to fix a problem introduced
  in the previous patch and pointed by Norm
Daniel
diff --git a/ChangeLog b/ChangeLog
index 6a5e8d7..dd38317 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+Mon May 27 14:16:28 CEST 2002 Daniel Veillard <daniel@veillard.com>
+
+	* xpath.c: patch from Richard Jinks to fix a problem introduced
+	  in the previous patch and pointed by Norm
+
 Fri May 24 13:10:22 CEST 2002 Daniel Veillard <daniel@veillard.com>
 
 	* libxml.spec.in: fixing bug #81112
diff --git a/xpath.c b/xpath.c
index 1c476b2..adc3310 100644
--- a/xpath.c
+++ b/xpath.c
@@ -8100,7 +8100,7 @@
 	    if (CUR != ')') {
 		name = xmlXPathParseLiteral(ctxt);
 		CHECK_ERROR 0;
-		*type = NODE_TEST_PI;
+		*test = NODE_TEST_PI;
 		SKIP_BLANKS;
 	    }
 	}