summaryrefslogtreecommitdiff
path: root/xml.c
diff options
context:
space:
mode:
Diffstat (limited to 'xml.c')
-rw-r--r--xml.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/xml.c b/xml.c
index 660a279..0c7b58b 100644
--- a/xml.c
+++ b/xml.c
@@ -314,7 +314,8 @@ xmlparser_parse(XMLParser *x)
if(c == '&') {
if(datalen) {
x->data[datalen] = '\0';
- x->xmldata(x, x->data, datalen);
+ if(x->xmldata)
+ x->xmldata(x, x->data, datalen);
}
x->data[0] = c;
datalen = 1;