commit | 1c0c10b52aff440a7ce2f894ae07c1f3bb4a915b | [log] [tgz] |
---|---|---|
author | Karl Waclawek <kwaclaw@users.sourceforge.net> | Mon Jan 19 00:19:47 2009 +0000 |
committer | Karl Waclawek <kwaclaw@users.sourceforge.net> | Mon Jan 19 00:19:47 2009 +0000 |
tree | afc96994f2ec6a77687bef3b6aeb378ff7ee4b8e | |
parent | 6daf07c969bdbfd22f4834b155ba4009f2cc2a44 [diff] |
Fix for issue #2517938: xmlwf should return a non-zero code for parsing errors.
diff --git a/expat/xmlwf/xmlwf.c b/expat/xmlwf/xmlwf.c index 41a433d..4fc77da 100755 --- a/expat/xmlwf/xmlwf.c +++ b/expat/xmlwf/xmlwf.c
@@ -849,8 +849,10 @@ if (outputType == 'm') metaEndDocument(parser); fclose(fp); - if (!result) + if (!result) { tremove(outName); + exit(2); + } free(outName); } XML_ParserFree(parser);