From: James Clark Date: Fri, 12 Dec 1997 09:17:24 +0000 (+0000) Subject: Fix bug in checkPiTarget X-Git-Tag: REC1_0~42 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=2a4f91e330fb0028c139244e8ca732de8cb47c72;p=libexpat Fix bug in checkPiTarget --- diff --git a/expat/xmltok/xmltok_impl.c b/expat/xmltok/xmltok_impl.c index ebbbc5c0..46de4f74 100755 --- a/expat/xmltok/xmltok_impl.c +++ b/expat/xmltok/xmltok_impl.c @@ -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)) {