mirror of
https://gitlab.gnome.org/GNOME/libxml2.git
synced 2025-07-30 22:43:14 +03:00
Fixes/enhancements: - tree.[ch] xmlIO.c: added xmlDocDumpMemoryEnc() from
Fixes/enhancements: - tree.[ch] xmlIO.c: added xmlDocDumpMemoryEnc() from John Kroll - error.c: applied fix suggested by "Leo Davidson" <leo@ox.compsoc.net> Daniel
This commit is contained in:
5
error.c
5
error.c
@ -62,10 +62,11 @@ void *xmlGenericErrorContext = NULL;
|
||||
*/
|
||||
void
|
||||
xmlSetGenericErrorFunc(void *ctx, xmlGenericErrorFunc handler) {
|
||||
if (ctx != NULL)
|
||||
xmlGenericErrorContext = ctx;
|
||||
xmlGenericErrorContext = ctx;
|
||||
if (handler != NULL)
|
||||
xmlGenericError = handler;
|
||||
else
|
||||
xmlGenericError = xmlGenericErrorDefaultFunc;
|
||||
}
|
||||
|
||||
/************************************************************************
|
||||
|
Reference in New Issue
Block a user