From 4f40df3788165a137bc60bb6c0fd96af0c248c35 Mon Sep 17 00:00:00 2001 From: Hiltjo Posthuma Date: Sun, 11 Mar 2018 16:32:18 +0100 Subject: xml: fix parsing of cdata when a handler is unset --- xml.c | 1 + 1 file changed, 1 insertion(+) 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) { -- cgit v1.2.3