From 9fcdfa67cc281509e0f11e1f2aba255718a80cbd Mon Sep 17 00:00:00 2001 From: Adam Dickmeiss Date: Tue, 9 Sep 2014 11:30:22 +0200 Subject: [PATCH] Initialize Libxml2 - for threaded operation MP-571 --- src/metaproxy_prog.cpp | 3 +++ src/router_flexml.cpp | 2 -- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/src/metaproxy_prog.cpp b/src/metaproxy_prog.cpp index 62860ad..5d176ae 100644 --- a/src/metaproxy_prog.cpp +++ b/src/metaproxy_prog.cpp @@ -216,6 +216,9 @@ static int sc_main( , test_config ? "test" : "start" ); + xmlInitParser(); + LIBXML_TEST_VERSION + yaz_log_xml_errors(0, YLOG_LOG); xmlDocPtr doc = xmlReadFile(fname, NULL, diff --git a/src/router_flexml.cpp b/src/router_flexml.cpp index e1f723e..54232de 100644 --- a/src/router_flexml.cpp +++ b/src/router_flexml.cpp @@ -431,8 +431,6 @@ mp::RouterFleXML::RouterFleXML(std::string xmlconf, mp::FactoryFilter &factory, bool test_only) : m_p(new Rep) { - LIBXML_TEST_VERSION; - xmlDocPtr doc = xmlParseMemory(xmlconf.c_str(), xmlconf.size()); if (!doc) -- 1.7.10.4