sfeed

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

commit d7b910dcaea6027b5c11f027e3af7eb4ac8962b2
parent e771e43d51830ec7d2a19d9d4e67cded83c1b302
Author: Hiltjo Posthuma <hiltjo@codemadness.org>
Date:   Thu, 22 Oct 2020 19:54:21 +0200

sfeed_web: whoops, fix bug mentioned in the previous commit

(ascii.jp)

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

diff --git a/sfeed_web.c b/sfeed_web.c @@ -27,10 +27,12 @@ xmltagstart(XMLParser *p, const char *t, size_t tl) { isbasetag = islinktag = 0; - if (!strcasecmp(t, "base")) + if (!strcasecmp(t, "base")) { isbasetag = 1; - else if (!strcasecmp(t, "link")) + } else if (!strcasecmp(t, "link")) { islinktag = 1; + linkhref[0] = '\0'; + } } static void