sfeed

simple feed reader - forked from git.codemadness.org/sfeed
git clone git://src.gearsix.net/sfeed
Log | Files | Refs | Atom | README | LICENSE

commit 82f29c375fb1f48d5645e3cac2daa174948f1fdc
parent 85df1e9f71f204d15b8cfd8801fab7cec77f1a0c
Author: Hiltjo Posthuma <hiltjo@codemadness.org>
Date:   Sat, 18 Jan 2020 19:22:15 +0100

sfeed_web: remove unneeded optimization

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

diff --git a/sfeed_web.c b/sfeed_web.c @@ -30,8 +30,6 @@ static void xmltagstart(XMLParser *p, const char *t, size_t tl) { isbase = islink = isfeedlink = 0; - if (tl != 4) /* optimization */ - return; if (!strcasecmp(t, "base")) isbase = 1; @@ -59,9 +57,6 @@ static void xmlattr(XMLParser *p, const char *t, size_t tl, const char *n, size_t nl, const char *v, size_t vl) { - if (nl != 4) /* optimization */ - return; - if (isbase) { if (!strcasecmp(n, "href")) strlcpy(basehref, v, sizeof(basehref));