1
0
mirror of https://gitlab.gnome.org/GNOME/libxml2.git synced 2025-10-24 13:33:01 +03:00

error: Don't use initGenericErrorDefaultFunc

The code in xmlInitParser did only set the error handler if it was NULL
which should never happen.
This commit is contained in:
Nick Wellnhofer
2022-09-09 01:44:00 +02:00
parent 27c8ba6054
commit a9669679f5
4 changed files with 5 additions and 6 deletions

View File

@@ -81,6 +81,8 @@ xmlGenericErrorDefaultFunc(void *ctx ATTRIBUTE_UNUSED, const char *msg, ...) {
* initGenericErrorDefaultFunc:
* @handler: the handler
*
* DEPRECATED: Use xmlSetGenericErrorFunc.
*
* Set or reset (if NULL) the default handler for generic errors
* to the builtin error function.
*/