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:
parent
4adf6eed09
commit
9b1bc7d11b
@ -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;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user