diff options
-rw-r--r-- | sfeed_xmlenc.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/sfeed_xmlenc.c b/sfeed_xmlenc.c index b760a18..e7cdaae 100644 --- a/sfeed_xmlenc.c +++ b/sfeed_xmlenc.c @@ -24,8 +24,11 @@ xmltagend(XMLParser *p, const char *tag, size_t taglen, int isshort) { static void xmlattr(XMLParser *p, const char *tag, size_t taglen, const char *name, size_t namelen, const char *value, size_t valuelen) { if(isxmlpi && (!strncasecmp(name, "encoding", namelen))) { - for(; *value; value++) - putc(tolower((int)*value), stdout); /* output lowercase */ + if(*value) { + for(; *value; value++) + putc(tolower((int)*value), stdout); /* output lowercase */ + putchar('\n'); + } exit(EXIT_SUCCESS); } } |