1
0
mirror of https://gitlab.gnome.org/GNOME/libxml2.git synced 2025-10-26 00:37:43 +03:00

save: Report malloc failures

Fix places where malloc failures aren't report.

Introduce a new API function xmlSaveFinish which returns an error code.
This commit is contained in:
Nick Wellnhofer
2023-12-10 17:14:57 +01:00
parent 1a354d5b30
commit 0d97e43993
2 changed files with 89 additions and 58 deletions

View File

@@ -73,6 +73,8 @@ XMLPUBFUN int
xmlSaveFlush (xmlSaveCtxtPtr ctxt);
XMLPUBFUN int
xmlSaveClose (xmlSaveCtxtPtr ctxt);
XMLPUBFUN int
xmlSaveFinish (xmlSaveCtxtPtr ctxt);
XMLPUBFUN int
xmlSaveSetEscape (xmlSaveCtxtPtr ctxt,
xmlCharEncodingOutputFunc escape);