commit | 1d757a077184ba2c938fd4825e60c0d3587cfb76 | [log] [tgz] |
---|---|---|
author | Fred L. Drake, Jr. <fdrake@users.sourceforge.net> | Fri Jul 23 02:02:41 2004 +0000 |
committer | Fred L. Drake, Jr. <fdrake@users.sourceforge.net> | Fri Jul 23 02:02:41 2004 +0000 |
tree | bbe7f975bcbb868cfb2e5a82cfcdc3c27258a426 | |
parent | f70a4ab7dd81cde0968edceb880976fb34dca187 [diff] |
The status argument to XML_GetParsingStatus() cannot be NULL.
diff --git a/expat/lib/xmlparse.c b/expat/lib/xmlparse.c index 1c0ccf0..19a83dd 100644 --- a/expat/lib/xmlparse.c +++ b/expat/lib/xmlparse.c
@@ -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; }