]> granicus.if.org Git - libexpat/commitdiff
Fix bug in checkPiTarget
authorJames Clark <jjc@jclark.com>
Fri, 12 Dec 1997 09:17:24 +0000 (09:17 +0000)
committerJames Clark <jjc@jclark.com>
Fri, 12 Dec 1997 09:17:24 +0000 (09:17 +0000)
expat/xmltok/xmltok_impl.c

index ebbbc5c06ee79affb2c08bcb6eda701b1d03a8ff..46de4f74f215ec413fdda38e3c1312960afac0a6 100755 (executable)
@@ -166,6 +166,7 @@ static
 int PREFIX(checkPiTarget)(const ENCODING *enc, const char *ptr, const char *end, int *tokPtr)
 {
   int upper = 0;
+  *tokPtr = XML_TOK_PI;
   if (end - ptr != MINBPC*3)
     return 1;
   switch (BYTE_TO_ASCII(enc, ptr)) {