sfeed

Simple RSS and Atom feed parser
git clone https://git.sinitax.com/codemadness/sfeed
Log | Files | Refs | README | LICENSE | Upstream | sfeed.txt

commit 27bc74a0433b143ce1744698e3c331e907a7fb3f
parent d4f666484cd690b15ea9725bed46c6bbc46c8fd8
Author: Hiltjo Posthuma <hiltjo@codemadness.org>
Date:   Sat, 16 May 2015 16:09:01 +0200

xml: only call data handler if set

Diffstat:
Mxml.c | 3++-
1 file changed, 2 insertions(+), 1 deletion(-)

diff --git 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;