Validate parser parameter to XML_SetStartCdataSectionHandler

This commit is contained in:
Rhodri James 2017-04-25 17:17:26 +01:00 committed by Sebastian Pipping
parent 5c374aa91d
commit c49b1309fe

View File

@ -1440,7 +1440,8 @@ XML_SetCdataSectionHandler(XML_Parser parser,
void XMLCALL
XML_SetStartCdataSectionHandler(XML_Parser parser,
XML_StartCdataSectionHandler start) {
startCdataSectionHandler = start;
if (parser != NULL)
startCdataSectionHandler = start;
}
void XMLCALL