mirror of
https://github.com/libexpat/libexpat.git
synced 2025-04-14 08:20:36 +00:00
Validate parser parameter to XML_SetStartDoctypeDeclHandler
This commit is contained in:
parent
2315924f2a
commit
e6e0d3e41f
1 changed files with 2 additions and 1 deletions
|
@ -1485,7 +1485,8 @@ XML_SetDoctypeDeclHandler(XML_Parser parser,
|
|||
void XMLCALL
|
||||
XML_SetStartDoctypeDeclHandler(XML_Parser parser,
|
||||
XML_StartDoctypeDeclHandler start) {
|
||||
startDoctypeDeclHandler = start;
|
||||
if (parser != NULL)
|
||||
startDoctypeDeclHandler = start;
|
||||
}
|
||||
|
||||
void XMLCALL
|
||||
|
|
Loading…
Add table
Reference in a new issue