From 25ce22039b43bbb6cafc329c5ad40d8638334e86 Mon Sep 17 00:00:00 2001 From: Hiltjo Posthuma Date: Mon, 21 Mar 2016 20:24:20 +0100 Subject: check for tagid == TagUnknown, bit more clear --- sfeed.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sfeed.c b/sfeed.c index 421bab5..955b831 100644 --- a/sfeed.c +++ b/sfeed.c @@ -616,7 +616,7 @@ xml_handler_start_el(XMLParser *p, const char *name, size_t namelen) /* map tag type to field: unknown or lesser priority is ignored, when tags of the same type are repeated only the first is used. */ - if (tagid <= ctx.fields[fieldmap[ctx.tagid]].tagid) { + if (tagid == TagUnknown || tagid <= ctx.fields[fieldmap[tagid]].tagid) { ctx.field = NULL; return; } -- cgit v1.2.3