From f578062c498b7fba33328c813a736e13c28ea372 Mon Sep 17 00:00:00 2001 From: Hiltjo Posthuma Date: Mon, 17 Jun 2019 22:57:21 +0200 Subject: sfeed: optimization: xmlattr: when not in some RSS/Atom tag skip further checks --- sfeed.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sfeed.c b/sfeed.c index e5faa05..66b5c28 100644 --- a/sfeed.c +++ b/sfeed.c @@ -609,7 +609,7 @@ xmlattr(XMLParser *p, const char *t, size_t tl, const char *n, size_t nl, return; } - if (ctx.feedtype == FeedTypeNone) + if (!ctx.tagid) return; /* content-type may be: Atom: text, xhtml, html or mime-type. -- cgit v1.2.3