From 1c0c10b52aff440a7ce2f894ae07c1f3bb4a915b Mon Sep 17 00:00:00 2001 From: Karl Waclawek 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. --- expat/xmlwf/xmlwf.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/expat/xmlwf/xmlwf.c b/expat/xmlwf/xmlwf.c index 41a433d3..4fc77da9 100755 --- a/expat/xmlwf/xmlwf.c +++ b/expat/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);