summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHiltjo Posthuma <hiltjo@codemadness.org>2020-10-22 19:54:21 +0200
committerHiltjo Posthuma <hiltjo@codemadness.org>2020-10-22 19:54:21 +0200
commitd7b910dcaea6027b5c11f027e3af7eb4ac8962b2 (patch)
tree05f693a04b1f906e5ad8ae8f8004b4a6c14a3042
parente771e43d51830ec7d2a19d9d4e67cded83c1b302 (diff)
sfeed_web: whoops, fix bug mentioned in the previous commit
(ascii.jp)
-rw-r--r--sfeed_web.c6
1 files 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