From 87d01c84d2958df7143472069c650b61e20f252e Mon Sep 17 00:00:00 2001 From: James Clark Date: Thu, 25 Mar 1999 04:58:25 +0000 Subject: [PATCH] Set up positionPtr in XML_Parse when len is 0. --- expat/xmlparse/xmlparse.c | 1 + 1 file changed, 1 insertion(+) diff --git a/expat/xmlparse/xmlparse.c b/expat/xmlparse/xmlparse.c index 3cdd71c5..01081a9a 100755 --- a/expat/xmlparse/xmlparse.c +++ b/expat/xmlparse/xmlparse.c @@ -730,6 +730,7 @@ int XML_Parse(XML_Parser parser, const char *s, int len, int isFinal) if (len == 0) { if (!isFinal) return 1; + positionPtr = bufferPtr; errorCode = processor(parser, bufferPtr, parseEndPtr = bufferEnd, 0); if (errorCode == XML_ERROR_NONE) return 1;