diff options
author | Hiltjo Posthuma <hiltjo@codemadness.org> | 2016-03-21 20:24:20 +0100 |
---|---|---|
committer | Hiltjo Posthuma <hiltjo@codemadness.org> | 2016-03-21 20:24:20 +0100 |
commit | 25ce22039b43bbb6cafc329c5ad40d8638334e86 (patch) | |
tree | 847e809354995ebbc4d62bb155d200ffea0013c4 | |
parent | 3b1217f6dc518016dff7c5270fd56dd85794d4f1 (diff) |
check for tagid == TagUnknown, bit more clear
-rw-r--r-- | sfeed.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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; } |