Initialize Libxml2 - for threaded operation PAZ-961
authorAdam Dickmeiss <adam@indexdata.dk>
Tue, 9 Sep 2014 09:08:05 +0000 (11:08 +0200)
committerAdam Dickmeiss <adam@indexdata.dk>
Tue, 9 Sep 2014 09:08:05 +0000 (11:08 +0200)
src/pazpar2.c

index 51b7249..3e8ebaf 100644 (file)
@@ -108,6 +108,9 @@ static int sc_main(
     struct conf_config *config = 0;
     int test_mode = 0;
 
+    xmlInitParser();
+    LIBXML_TEST_VERSION
+
 #ifndef WIN32
     if (signal(SIGPIPE, SIG_IGN) == SIG_ERR)
         yaz_log(YLOG_WARN|YLOG_ERRNO, "signal");