expat/lib xmlparse.c,1.135,1.136

"Fred L. Drake" <[email protected]> Thu, 22 Jul 2004 19:02:44 -0700
Newsgroups gmane.text.xml.expat.cvs
Message-ID <[email protected]>
Update of /cvsroot/expat/expat/lib
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv14311/lib

Modified Files:
	xmlparse.c 
Log Message:
The status argument to XML_GetParsingStatus() cannot be NULL.

Index: xmlparse.c
===================================================================
RCS file: /cvsroot/expat/expat/lib/xmlparse.c,v
retrieving revision 1.135
retrieving revision 1.136
diff -u -d -r1.135 -r1.136
--- xmlparse.c	27 May 2004 17:38:52 -0000	1.135
+++ xmlparse.c	23 Jul 2004 02:02:41 -0000	1.136
@@ -4,6 +4,7 @@
 
 #include <stddef.h>
 #include <string.h>                     /* memset(), memcpy() */
+#include <assert.h>
 
 #define XML_BUILDING_EXPAT 1
 
@@ -1735,6 +1736,7 @@
 void XMLCALL
 XML_GetParsingStatus(XML_Parser parser, XML_ParsingStatus *status)
 {
+  assert(status != NULL);
   *status = parser->m_parsingStatus;
 }