]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
ESI: Fix build [-Wdeprecated-declarations] (#1295)
authorgkinkie@gmail.com <kinkie@squid-cache.org>
Sat, 4 Mar 2023 01:46:20 +0000 (01:46 +0000)
committerSquid Anubis <squid-anubis@squid-cache.org>
Sat, 4 Mar 2023 01:46:29 +0000 (01:46 +0000)
Replaced deprecated htmlDefaultSAXHandlerInit() libxml2 initialization
call with xmlInitParser().

src/esi/Libxml2Parser.cc

index ac2e73df7d1bfb7cf0ec0ba5cdbd93028310682e..0f2e770682c35f9f6ce8196401c04e142652a7b5 100644 (file)
@@ -108,7 +108,7 @@ esi_getEntitySAXFunc(void * /* ctx */, const xmlChar *name)
 ESILibxml2Parser::ESILibxml2Parser(ESIParserClient *aClient) : theClient (aClient)
 {
     xmlSAXHandler sax;
-    htmlDefaultSAXHandlerInit();
+    xmlInitParser();
     memset(&sax, 0, sizeof(sax));
     sax.startElement = esi_startElementSAXFunc;
     sax.endElement = esi_endElementSAXFunc;