summaryrefslogtreecommitdiff
path: root/expat/xmlwf
diff options
context:
space:
mode:
authorSebastian Pipping <sebastian@pipping.org>2019-09-05 18:29:59 +0200
committerSebastian Pipping <sebastian@pipping.org>2019-09-06 19:53:36 +0200
commit70a4a691fc43644e69d3876ed7d43ab717c9cb43 (patch)
tree3e5c929210165d0bf6a6a27a42735f52e9b204ce /expat/xmlwf
parent11a621be712f6a4c6c3256aaa8d95c916268f869 (diff)
downloadlibexpat-git-70a4a691fc43644e69d3876ed7d43ab717c9cb43.tar.gz
xmlwf: Fix exit code for case without "-d DIRECTORY"
Diffstat (limited to 'expat/xmlwf')
-rw-r--r--expat/xmlwf/xmlwf.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/expat/xmlwf/xmlwf.c b/expat/xmlwf/xmlwf.c
index 0a154ca0..2d5a87e7 100644
--- a/expat/xmlwf/xmlwf.c
+++ b/expat/xmlwf/xmlwf.c
@@ -1114,11 +1114,13 @@ tmain(int argc, XML_Char **argv) {
fclose(userData.fp);
if (! result) {
tremove(outName);
- exit(2);
}
free(outName);
}
XML_ParserFree(parser);
+ if (! result) {
+ exit(2);
+ }
}
return 0;
}