mirror of
https://github.com/libexpat/libexpat.git
synced 2025-04-15 00:38:15 +00:00
Validate parser parameter to XML_SetDoctypeDeclHandler
This commit is contained in:
parent
eca1d097e1
commit
2315924f2a
1 changed files with 2 additions and 0 deletions
|
@ -1476,6 +1476,8 @@ XML_SetDoctypeDeclHandler(XML_Parser parser,
|
|||
XML_StartDoctypeDeclHandler start,
|
||||
XML_EndDoctypeDeclHandler end)
|
||||
{
|
||||
if (parser == NULL)
|
||||
return;
|
||||
startDoctypeDeclHandler = start;
|
||||
endDoctypeDeclHandler = end;
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue