Validate parser parameter to XML_SetStartDoctypeDeclHandler
@@ -1485,6 +1485,7 @@ XML_SetDoctypeDeclHandler(XML_Parser parser,
void XMLCALL
XML_SetStartDoctypeDeclHandler(XML_Parser parser,
XML_StartDoctypeDeclHandler start) {
+ if (parser != NULL)
startDoctypeDeclHandler = start;
}
