summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHiltjo Posthuma <hiltjo@codemadness.org>2018-12-02 12:52:50 +0100
committerHiltjo Posthuma <hiltjo@codemadness.org>2018-12-02 12:52:50 +0100
commit5392fa72824601777f5038baf72a3f776f1d4376 (patch)
treedb81de00b9972885c12accf685f89f5804d83b7d
parent3b5800973c038e401da2c77b792a7b2ed9530821 (diff)
sfeed_xmlenc: don't treat not finding an encoding as an error
in scripts empty output should be checked.
-rw-r--r--sfeed_xmlenc.c4
1 files 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;
}