summaryrefslogtreecommitdiff
path: root/sfeed.c
diff options
context:
space:
mode:
Diffstat (limited to 'sfeed.c')
-rw-r--r--sfeed.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/sfeed.c b/sfeed.c
index f01b280..086031a 100644
--- a/sfeed.c
+++ b/sfeed.c
@@ -894,7 +894,9 @@ xmltagstartparsed(XMLParser *p, const char *t, size_t tl, int isshort)
/* set tag type based on it's attribute value */
if (ctx.tag.id == RSSTagGuid) {
- if (isattr(attrispermalink.data, attrispermalink.len, STRP("true")))
+ /* if empty the default is "true" */
+ if (!attrispermalink.len ||
+ isattr(attrispermalink.data, attrispermalink.len, STRP("true")))
ctx.tag.id = RSSTagGuidPermalinkTrue;
else
ctx.tag.id = RSSTagGuidPermalinkFalse;