From 5392fa72824601777f5038baf72a3f776f1d4376 Mon Sep 17 00:00:00 2001
From: Hiltjo Posthuma <hiltjo@codemadness.org>
Date: Sun, 2 Dec 2018 12:52:50 +0100
Subject: sfeed_xmlenc: don't treat not finding an encoding as an error

in scripts empty output should be checked.
---
 sfeed_xmlenc.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/sfeed_xmlenc.c b/sfeed_xmlenc.c
index 955042f..683e853 100644
--- a/sfeed_xmlenc.c
+++ b/sfeed_xmlenc.c
@@ -19,7 +19,7 @@ xmltagstart(XMLParser *p, const char *t, size_t tl)
 	/* optimization: try to find a processing instruction only at the
 	   start of the data. */
 	if (tags++ > 3)
-		exit(1);
+		exit(0);
 }
 
 static void
@@ -50,5 +50,5 @@ main(void)
 	parser.getnext = getchar;
 	xml_parse(&parser);
 
-	return 1;
+	return 0;
 }
-- 
cgit v1.2.3