]> granicus.if.org Git - libexpat/commitdiff
The status argument to XML_GetParsingStatus() cannot be NULL.
authorFred L. Drake, Jr. <fdrake@users.sourceforge.net>
Fri, 23 Jul 2004 02:02:41 +0000 (02:02 +0000)
committerFred L. Drake, Jr. <fdrake@users.sourceforge.net>
Fri, 23 Jul 2004 02:02:41 +0000 (02:02 +0000)
expat/lib/xmlparse.c

index 1c0ccf0ca94f579781eaa6d6e1d3c12b010cd401..19a83ddc361e4c81417df313c45071ff3057cf48 100644 (file)
@@ -4,6 +4,7 @@
 
 #include <stddef.h>
 #include <string.h>                     /* memset(), memcpy() */
+#include <assert.h>
 
 #define XML_BUILDING_EXPAT 1
 
@@ -1735,6 +1736,7 @@ XML_ResumeParser(XML_Parser parser)
 void XMLCALL
 XML_GetParsingStatus(XML_Parser parser, XML_ParsingStatus *status)
 {
+  assert(status != NULL);
   *status = parser->m_parsingStatus;
 }