1
0
mirror of https://github.com/pgbackrest/pgbackrest.git synced 2025-11-06 08:49:29 +02:00

Use new LibXML error handler.

The old error handler has been deprecated.
This commit is contained in:
David Steele
2023-06-14 12:28:00 +02:00
parent 4adf6eed09
commit 9b1bc7d11b

View File

@@ -65,9 +65,8 @@ xmlInit(void)
{ {
LIBXML_TEST_VERSION; LIBXML_TEST_VERSION;
// It's a pretty weird that we can't just pass a handler function but instead have to assign it to a var... // Set error handler
static xmlGenericErrorFunc xmlErrorHandlerFunc = xmlErrorHandler; xmlSetGenericErrorFunc(NULL, xmlErrorHandler);
initGenericErrorDefaultFunc(&xmlErrorHandlerFunc);
xmlInit = true; xmlInit = true;
} }