From d7b910dcaea6027b5c11f027e3af7eb4ac8962b2 Mon Sep 17 00:00:00 2001 From: Hiltjo Posthuma Date: Thu, 22 Oct 2020 19:54:21 +0200 Subject: sfeed_web: whoops, fix bug mentioned in the previous commit (ascii.jp) --- sfeed_web.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/sfeed_web.c b/sfeed_web.c index c9cea05..e0ab874 100644 --- 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 -- cgit v1.2.3