mirror of
https://github.com/libexpat/libexpat.git
synced 2025-04-15 00:38:15 +00:00
Validate parser parameter to XML_SetElementDeclHandler
This commit is contained in:
parent
62befbddcd
commit
7f6e542071
1 changed files with 2 additions and 1 deletions
|
@ -1587,7 +1587,8 @@ void XMLCALL
|
|||
XML_SetElementDeclHandler(XML_Parser parser,
|
||||
XML_ElementDeclHandler eldecl)
|
||||
{
|
||||
elementDeclHandler = eldecl;
|
||||
if (parser != NULL)
|
||||
elementDeclHandler = eldecl;
|
||||
}
|
||||
|
||||
void XMLCALL
|
||||
|
|
Loading…
Add table
Reference in a new issue