1
0
mirror of https://github.com/pgbackrest/pgbackrest.git synced 2025-01-18 04:58:51 +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;
// It's a pretty weird that we can't just pass a handler function but instead have to assign it to a var...
static xmlGenericErrorFunc xmlErrorHandlerFunc = xmlErrorHandler;
initGenericErrorDefaultFunc(&xmlErrorHandlerFunc);
// Set error handler
xmlSetGenericErrorFunc(NULL, xmlErrorHandler);
xmlInit = true;
}