mirror of
https://github.com/libexpat/libexpat.git
synced 2025-04-16 02:04:34 +00:00
Fix for issue #2517938: xmlwf should return a non-zero code for parsing errors.
This commit is contained in:
parent
6daf07c969
commit
1c0c10b52a
1 changed files with 3 additions and 1 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Reference in a new issue