From: Jean-Christophe Amiel <jeanchristophe.amiel@orange.com>
Date: Sun, 20 Apr 2025 23:30:51 +0200
Subject: [PATCH] Replace deprecated libxml2 initGenericErrorDefaultFunc with xmlSetGenericErrorFunc.

Index: packages/hurl/src/runner/xpath.rs
--- packages/hurl/src/runner/xpath.rs.orig
+++ packages/hurl/src/runner/xpath.rs
@@ -168,7 +168,7 @@ fn libxml_eval_xpath(
 
     // libxml2 prints to stdout warning and errors, so we mut it.
     unsafe {
-        libxml::bindings::initGenericErrorDefaultFunc(&mut Some(silentErrorFunc));
+        libxml::bindings::xmlSetGenericErrorFunc(ptr::null_mut(), Some(silentErrorFunc));
     }
 
     if support_ns {
