From eb4631c82f3b57fb016234447443268d4f46b933 Mon Sep 17 00:00:00 2001 From: Adam Dickmeiss Date: Thu, 27 Feb 2014 10:01:12 +0100 Subject: [PATCH] exsltRegisterAll in proper place --- src/init_globals.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/init_globals.c b/src/init_globals.c index 0800a4b..81cb966 100644 --- a/src/init_globals.c +++ b/src/init_globals.c @@ -55,11 +55,11 @@ void yaz_init_globals(void) gcry_control(GCRYCTL_INITIALIZATION_FINISHED, NULL, 0); } #endif - yaz_init_flag = 1; - } #if YAZ_HAVE_EXSLT - exsltRegisterAll(); + exsltRegisterAll(); #endif + yaz_init_flag = 1; /* must be last, before unlocking */ + } #if YAZ_POSIX_THREADS pthread_mutex_unlock(&yaz_init_mutex); #endif -- 1.7.10.4