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