summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHiltjo Posthuma <hiltjo@codemadness.org>2015-06-21 00:17:18 +0200
committerHiltjo Posthuma <hiltjo@codemadness.org>2015-06-21 00:17:18 +0200
commit4e1438caf5d36d6278ed1e33daf937e71f063236 (patch)
tree3f559359acd1acec8904823ae9b71bbabb88555d
parenta79f39c9ed1e03d74fe79b831549eb67eff86447 (diff)
xml.c: fix empty cdata callback
-rw-r--r--xml.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/xml.c b/xml.c
index 0c7b58b..4af4780 100644
--- a/xml.c
+++ b/xml.c
@@ -207,7 +207,7 @@ xmlparser_parsecdata(XMLParser *x)
if(datalen >= 2) {
datalen -= 2;
x->data[datalen] = '\0';
- if(x->xmlcdata && datalen)
+ if(x->xmlcdata)
x->xmlcdata(x, x->data, datalen);
}
if(x->xmlcdataend)