summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorkwaclaw <kwaclaw>2009-01-19 00:19:47 +0000
committerkwaclaw <kwaclaw>2009-01-19 00:19:47 +0000
commit080150f494fdcd8a40f2b921851b8a85c0483f8b (patch)
tree621a4cb028903341b3019dca9489121fa750c0e0
parent36c4277dbff70e0c0d0cc08a30f6e3c9d4a63909 (diff)
downloadlibexpat-080150f494fdcd8a40f2b921851b8a85c0483f8b.tar.gz
Fix for issue #2517938: xmlwf should return a non-zero code for parsing errors.
-rwxr-xr-xxmlwf/xmlwf.c4
1 files changed, 3 insertions, 1 deletions
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);