X-Git-Url: http://git.indexdata.com/?p=yaz-moved-to-github.git;a=blobdiff_plain;f=src%2Finit_globals.c;h=81cb966c3d3971380119db639b9c41343d39290f;hp=0800a4bc836744c91c8c6e5af3c647e266e9ad37;hb=eb4631c82f3b57fb016234447443268d4f46b933;hpb=71e066dd201f095184b98199399ac7965f7f176e 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