Validate parser parameter to XML_SetDoctypeDeclHandler

This commit is contained in:
Rhodri James 2017-04-25 17:27:00 +01:00 committed by Sebastian Pipping
parent eca1d097e1
commit 2315924f2a

View File

@ -1476,6 +1476,8 @@ XML_SetDoctypeDeclHandler(XML_Parser parser,
XML_StartDoctypeDeclHandler start,
XML_EndDoctypeDeclHandler end)
{
if (parser == NULL)
return;
startDoctypeDeclHandler = start;
endDoctypeDeclHandler = end;
}