mirror of
https://github.com/libexpat/libexpat.git
synced 2025-04-13 08:02:56 +00:00
Set up positionPtr in XML_Parse when len is 0.
This commit is contained in:
parent
bfcc4836d0
commit
87d01c84d2
1 changed files with 1 additions and 0 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Reference in a new issue