sfeed

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

commit c30806b15999b4c35649ddea54b2be6ac9a14620
parent 3d4ab8553f7f2867b1ee5526a6785a2877ec5648
Author: Hiltjo Posthuma <hiltjo@codemadness.org>
Date:   Wed, 21 Oct 2020 00:31:51 +0200

sfeed_web: reset feedlink buffer

Noticed strange output on the site ascii.jp:

The site HTML contained:
	<link rel="apple-touch-icon-precomposed" href="/img/apple-touch-icon.png" />
	<link rel="alternate" type="application/rss+xml"  />

This would print:
	"/img/apple-touch-icon.png       application/rss+xml"

Now it prints:

	"	application/rss+xml"

Diffstat:
Msfeed_web.c | 1+
1 file changed, 1 insertion(+), 0 deletions(-)

diff --git a/sfeed_web.c b/sfeed_web.c @@ -25,6 +25,7 @@ static void xmltagstart(XMLParser *p, const char *t, size_t tl) { isbase = islink = isfeedlink = 0; + feedlink[0] = '\0'; if (!strcasecmp(t, "base")) isbase = 1;