Validate parser parameter to XML_SetDoctypeDeclHandler
This commit is contained in:
parent
eca1d097e1
commit
2315924f2a
@ -1476,6 +1476,8 @@ XML_SetDoctypeDeclHandler(XML_Parser parser,
|
||||
XML_StartDoctypeDeclHandler start,
|
||||
XML_EndDoctypeDeclHandler end)
|
||||
{
|
||||
if (parser == NULL)
|
||||
return;
|
||||
startDoctypeDeclHandler = start;
|
||||
endDoctypeDeclHandler = end;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user