mirror of
https://github.com/libexpat/libexpat.git
synced 2025-04-14 16:20:45 +00:00
Validate parser parameter to XML_SetStartNamespaceDeclHandler
This commit is contained in:
parent
8b379e7818
commit
a3a68e74dd
1 changed files with 2 additions and 1 deletions
|
@ -1526,7 +1526,8 @@ XML_SetNamespaceDeclHandler(XML_Parser parser,
|
|||
void XMLCALL
|
||||
XML_SetStartNamespaceDeclHandler(XML_Parser parser,
|
||||
XML_StartNamespaceDeclHandler start) {
|
||||
startNamespaceDeclHandler = start;
|
||||
if (parser != NULL)
|
||||
startNamespaceDeclHandler = start;
|
||||
}
|
||||
|
||||
void XMLCALL
|
||||
|
|
Loading…
Add table
Reference in a new issue