summaryrefslogtreecommitdiff
path: root/sfeed_opml_import.c
diff options
context:
space:
mode:
Diffstat (limited to 'sfeed_opml_import.c')
-rw-r--r--sfeed_opml_import.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/sfeed_opml_import.c b/sfeed_opml_import.c
index df74cc9..0802542 100644
--- a/sfeed_opml_import.c
+++ b/sfeed_opml_import.c
@@ -77,11 +77,9 @@ xmlattrentity(XMLParser *p, const char *t, size_t tl, const char *n, size_t nl,
const char *v, size_t vl)
{
char buf[16];
- ssize_t len;
+ int len;
- if ((len = xml_entitytostr(v, buf, sizeof(buf))) < 0)
- return;
- if (len > 0)
+ if ((len = xml_entitytostr(v, buf, sizeof(buf))) > 0)
xmlattr(p, t, tl, n, nl, buf, len);
else
xmlattr(p, t, tl, n, nl, v, vl);