summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHiltjo Posthuma <hiltjo@codemadness.org>2020-10-21 00:31:51 +0200
committerHiltjo Posthuma <hiltjo@codemadness.org>2020-10-21 00:31:51 +0200
commitc30806b15999b4c35649ddea54b2be6ac9a14620 (patch)
treeb13856a029e044e66fe5ee5e99aaedf35aa6cc00
parent3d4ab8553f7f2867b1ee5526a6785a2877ec5648 (diff)
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"
-rw-r--r--sfeed_web.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/sfeed_web.c b/sfeed_web.c
index 563b0b3..308d22c 100644
--- 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;