diff options
author | fdrake <fdrake> | 2004-07-23 02:02:41 +0000 |
---|---|---|
committer | fdrake <fdrake> | 2004-07-23 02:02:41 +0000 |
commit | 7b8aad62a09e0c154f06327269852ce66efa80f5 (patch) | |
tree | b04813f28fd7b75dd5fc4269fe6ec85485574524 /lib/xmlparse.c | |
parent | 7c7e78b18cc076b0d2e26b5f98b1424a36221e00 (diff) | |
download | libexpat-7b8aad62a09e0c154f06327269852ce66efa80f5.tar.gz |
The status argument to XML_GetParsingStatus() cannot be NULL.
Diffstat (limited to 'lib/xmlparse.c')
-rw-r--r-- | lib/xmlparse.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/xmlparse.c b/lib/xmlparse.c index 1c0ccf0..19a83dd 100644 --- a/lib/xmlparse.c +++ b/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 @@ XML_ResumeParser(XML_Parser parser) void XMLCALL XML_GetParsingStatus(XML_Parser parser, XML_ParsingStatus *status) { + assert(status != NULL); *status = parser->m_parsingStatus; } |