Fix for issue #2517938: xmlwf should return a non-zero code for parsing errors.

This commit is contained in:
Karl Waclawek 2009-01-19 00:19:47 +00:00
parent 6daf07c969
commit 1c0c10b52a

View File

@ -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);