projects
/
yaz-moved-to-github.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fix ZOOM_connection_Z3950_search: Assertion YAZ-750
[yaz-moved-to-github.git]
/
src
/
init_globals.c
diff --git
a/src/init_globals.c
b/src/init_globals.c
index
0800a4b
..
81cb966
100644
(file)
--- 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
gcry_control(GCRYCTL_INITIALIZATION_FINISHED, NULL, 0);
}
#endif
- yaz_init_flag = 1;
- }
#if YAZ_HAVE_EXSLT
#if YAZ_HAVE_EXSLT
- exsltRegisterAll();
+ exsltRegisterAll();
#endif
#endif
+ yaz_init_flag = 1; /* must be last, before unlocking */
+ }
#if YAZ_POSIX_THREADS
pthread_mutex_unlock(&yaz_init_mutex);
#endif
#if YAZ_POSIX_THREADS
pthread_mutex_unlock(&yaz_init_mutex);
#endif