[Expat-checkins] expat/xmlwf xmlwf.c,1.74,1.75

Karl Waclawek kwaclaw at users.sourceforge.net
Mon Jan 19 01:19:49 CET 2009


Update of /cvsroot/expat/expat/xmlwf
In directory 23jxhf1.ch3.sourceforge.com:/tmp/cvs-serv22386

Modified Files:
	xmlwf.c 
Log Message:
Fix for issue #2517938: xmlwf should return a non-zero code for parsing errors.

Index: xmlwf.c
===================================================================
RCS file: /cvsroot/expat/expat/xmlwf/xmlwf.c,v
retrieving revision 1.74
retrieving revision 1.75
diff -u -d -r1.74 -r1.75
--- xmlwf.c	3 Jun 2007 15:00:09 -0000	1.74
+++ xmlwf.c	19 Jan 2009 00:19:47 -0000	1.75
@@ -849,8 +849,10 @@
       if (outputType == 'm')
         metaEndDocument(parser);
       fclose(fp);
-      if (!result)
+      if (!result) {
         tremove(outName);
+        exit(2);
+      }
       free(outName);
     }
     XML_ParserFree(parser);



More information about the Expat-checkins mailing list