]> 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)
committerAmos Jeffries <yadij@users.noreply.github.com>
Mon, 27 Mar 2023 10:21:31 +0000 (23:21 +1300)
Replaced deprecated htmlDefaultSAXHandlerInit() libxml2 initialization
call with xmlInitParser().

src/esi/Libxml2Parser.cc

index 09f640a69778c7e33b12ac1e80be7ab83a9fc1aa..ae730a0718289e486869e4cd5f884eb84f4a0d6e 100644 (file)
@@ -81,7 +81,7 @@ xmlEntityPtr 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;