sfeed

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

commit 5835c87f41f97a9f8f0c0ccbaea1615223e3b014
parent a869ac25e174b7179f13557dd0a23840bf2cf327
Author: Hiltjo Posthuma <hiltjo@codemadness.org>
Date:   Tue, 11 Nov 2014 19:11:03 +0100

set FILE* pointers to NULL

Diffstat:
Msfeed_frames.c | 16++++++++++++----
1 file changed, 12 insertions(+), 4 deletions(-)

diff --git a/sfeed_frames.c b/sfeed_frames.c @@ -27,14 +27,22 @@ die(const char *s) { static void cleanup(void) { - if(fpmenu) + if(fpmenu) { fclose(fpmenu); - if(fpitems) + fpmenu = NULL; + } + if(fpitems) { fclose(fpitems); - if(fpindex) + fpitems = NULL; + } + if(fpindex) { fclose(fpindex); - if(fpcontent) + fpindex = NULL; + } + if(fpcontent) { fclose(fpcontent); + fpcontent = NULL; + } free(line); /* free line */ line = NULL; feedsfree(feeds); /* free feeds linked-list */