You've already forked pgbackrest
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:
@@ -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;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user