summaryrefslogtreecommitdiff
path: root/contrib/expat/lib/xmltok_impl.c
diff options
context:
space:
mode:
Diffstat (limited to 'contrib/expat/lib/xmltok_impl.c')
-rw-r--r--contrib/expat/lib/xmltok_impl.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/contrib/expat/lib/xmltok_impl.c b/contrib/expat/lib/xmltok_impl.c
index 16dfb85f031e..9c2895b87739 100644
--- a/contrib/expat/lib/xmltok_impl.c
+++ b/contrib/expat/lib/xmltok_impl.c
@@ -885,7 +885,7 @@ PREFIX(scanPercent)(const ENCODING *enc, const char *ptr, const char *end,
const char **nextTokPtr)
{
if (ptr == end)
- return -XML_TOK_PERCENT;
+ return XML_TOK_PARTIAL;
switch (BYTE_TYPE(enc, ptr)) {
CHECK_NMSTRT_CASES(enc, ptr, end, nextTokPtr)
case BT_S: case BT_LF: case BT_CR: case BT_PERCNT: