mirror of
https://gitlab.gnome.org/GNOME/libxml2.git
synced 2025-07-29 11:41:22 +03:00
Keith Isdale complained rightly that xmlInitParser() did not preserve
* parser.c error.c: Keith Isdale complained rightly that xmlInitParser() did not preserve value set by xmlSetGenericErrorFunc Daniel
This commit is contained in:
10
error.c
10
error.c
@ -75,12 +75,12 @@ xmlGenericErrorDefaultFunc(void *ctx ATTRIBUTE_UNUSED, const char *msg, ...) {
|
||||
}
|
||||
|
||||
void
|
||||
initGenericErrorDefaultFunc(xmlGenericErrorFunc *handler)
|
||||
initGenericErrorDefaultFunc(xmlGenericErrorFunc * handler)
|
||||
{
|
||||
if (handler == NULL)
|
||||
xmlGenericError = xmlGenericErrorDefaultFunc;
|
||||
else
|
||||
(*handler) = xmlGenericErrorDefaultFunc;
|
||||
if (handler == NULL)
|
||||
xmlGenericError = xmlGenericErrorDefaultFunc;
|
||||
else
|
||||
(*handler) = xmlGenericErrorDefaultFunc;
|
||||
}
|
||||
|
||||
/**
|
||||
|
Reference in New Issue
Block a user