summaryrefslogtreecommitdiff
path: root/common
diff options
context:
space:
mode:
Diffstat (limited to 'common')
-rw-r--r--common/library.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/common/library.c b/common/library.c
index 2d54fd5..b7d6923 100644
--- a/common/library.c
+++ b/common/library.c
@@ -60,7 +60,7 @@ static p11_local * _p11_library_get_thread_local (void);
p11_mutex_t p11_library_mutex;
#ifdef OS_UNIX
-pthread_once_t p11_library_once;
+pthread_once_t p11_library_once = PTHREAD_ONCE_INIT;
#endif
static char *