mirror of
https://github.com/libexpat/libexpat.git
synced 2025-04-16 10:14:40 +00:00
Validate parser parameter to XML_SetStartElementHandler
This commit is contained in:
parent
5416e027cc
commit
d4958bd917
1 changed files with 2 additions and 1 deletions
|
@ -1391,7 +1391,8 @@ XML_SetElementHandler(XML_Parser parser,
|
|||
void XMLCALL
|
||||
XML_SetStartElementHandler(XML_Parser parser,
|
||||
XML_StartElementHandler start) {
|
||||
startElementHandler = start;
|
||||
if (parser != NULL)
|
||||
startElementHandler = start;
|
||||
}
|
||||
|
||||
void XMLCALL
|
||||
|
|
Loading…
Add table
Reference in a new issue