sfeed

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

commit 738ec8a824ea16ddd97624995c99e1be4fea091c
parent c28a8ba769f2c0468436e7a5d42264644711ff51
Author: Hiltjo Posthuma <hiltjo@codemadness.org>
Date:   Wed,  5 Aug 2015 18:41:47 +0200

sfeed_xmlenc: simplify and kill some lines

Diffstat:
Msfeed_xmlenc.c | 6++----
1 file changed, 2 insertions(+), 4 deletions(-)

diff --git a/sfeed_xmlenc.c b/sfeed_xmlenc.c @@ -7,6 +7,7 @@ #include "xml.h" +static XMLParser parser; static int isxmlpi = 0, tags = 0; static void @@ -55,12 +56,9 @@ xmlattr(XMLParser *p, const char *tag, size_t taglen, const char *name, int main(void) { - XMLParser parser; - - memset(&parser, 0, sizeof(parser)); + parser.xmlattr = xmlattr; parser.xmltagstart = xmltagstart; parser.xmltagend = xmltagend; - parser.xmlattr = xmlattr; xmlparser_parse_fd(&parser, 0);