commit 5392fa72824601777f5038baf72a3f776f1d4376
parent 3b5800973c038e401da2c77b792a7b2ed9530821
Author: Hiltjo Posthuma <hiltjo@codemadness.org>
Date: Sun, 2 Dec 2018 12:52:50 +0100
sfeed_xmlenc: don't treat not finding an encoding as an error
in scripts empty output should be checked.
Diffstat:
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git 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;
}