summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHiltjo Posthuma <hiltjo@codemadness.org>2019-06-17 22:57:21 +0200
committerHiltjo Posthuma <hiltjo@codemadness.org>2019-06-17 22:57:21 +0200
commitf578062c498b7fba33328c813a736e13c28ea372 (patch)
tree9a33b70303ba3e360f22eab495e52f26c8141d53
parent48aa9d406a9f961f3ab1b56ae38a20950f505588 (diff)
sfeed: optimization: xmlattr: when not in some RSS/Atom tag skip further checks
-rw-r--r--sfeed.c2
1 files changed, 1 insertions, 1 deletions
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.