From a02c7488583eb4c5be5565ad7f669b4541f71bbe Mon Sep 17 00:00:00 2001 From: kwaclaw Date: Mon, 19 Jan 2009 00:19:47 +0000 Subject: [PATCH] Fix for issue #2517938: xmlwf should return a non-zero code for parsing errors. --- xmlwf/xmlwf.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/xmlwf/xmlwf.c b/xmlwf/xmlwf.c index 41a433d..4fc77da 100755 --- a/xmlwf/xmlwf.c +++ b/xmlwf/xmlwf.c @@ -849,8 +849,10 @@ tmain(int argc, XML_Char **argv) if (outputType == 'm') metaEndDocument(parser); fclose(fp); - if (!result) + if (!result) { tremove(outName); + exit(2); + } free(outName); } XML_ParserFree(parser); -- 2.11.4.GIT