]> granicus.if.org Git - p11-kit/commitdiff
Fix uninitialized p11_library_once
authormanphiz@gmail.com <manphiz@gmail.com>
Wed, 24 Apr 2013 01:01:00 +0000 (01:01 +0000)
committerStef Walter <stefw@gnome.org>
Tue, 28 May 2013 09:19:38 +0000 (11:19 +0200)
https://bugs.freedesktop.org/show_bug.cgi?id=57714

common/library.c

index 2d54fd50d9cfe70cb41be2c2591d30822240259d..b7d69236bceb67b2ac4e3baced378499981039de 100644 (file)
@@ -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 *