summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHiltjo Posthuma <hiltjo@codemadness.org>2018-03-11 16:32:18 +0100
committerHiltjo Posthuma <hiltjo@codemadness.org>2018-03-11 16:32:18 +0100
commit4f40df3788165a137bc60bb6c0fd96af0c248c35 (patch)
treec46e918943264da9b9281b8502fa0f6f1289f890
parent07785ee64d1e750235d0ae47241049b64ed66528 (diff)
xml: fix parsing of cdata when a handler is unset
-rw-r--r--xml.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/xml.c b/xml.c
index 33c2fef..ec5d05c 100644
--- a/xml.c
+++ b/xml.c
@@ -181,6 +181,7 @@ xml_parsecdata(XMLParser *x)
if (x->xmlcdata)
for (; i > 0; i--)
x->xmlcdata(x, "]", 1);
+ i = 0;
}
if (datalen < sizeof(x->data) - 1) {