mirror of
https://gitlab.gnome.org/GNOME/libxml2.git
synced 2025-07-30 23:41:49 +03:00
malloc-fail: Check for NULL pointer in xmlSaveNotation*
This commit is contained in:
@ -2171,12 +2171,16 @@ xmlSaveTree(xmlSaveCtxtPtr ctxt, xmlNodePtr cur)
|
||||
|
||||
int
|
||||
xmlSaveNotationDecl(xmlSaveCtxtPtr ctxt, xmlNotationPtr cur) {
|
||||
if (ctxt == NULL)
|
||||
return(-1);
|
||||
xmlBufDumpNotationDecl(ctxt->buf, cur);
|
||||
return(0);
|
||||
}
|
||||
|
||||
int
|
||||
xmlSaveNotationTable(xmlSaveCtxtPtr ctxt, xmlNotationTablePtr cur) {
|
||||
if (ctxt == NULL)
|
||||
return(-1);
|
||||
xmlBufDumpNotationTable(ctxt->buf, cur);
|
||||
return(0);
|
||||
}
|
||||
|
Reference in New Issue
Block a user