diff options
Diffstat (limited to 'pthread_mutex_lock.c')
-rw-r--r-- | pthread_mutex_lock.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/pthread_mutex_lock.c b/pthread_mutex_lock.c index a59666a..f92b39b 100644 --- a/pthread_mutex_lock.c +++ b/pthread_mutex_lock.c @@ -58,7 +58,7 @@ pthread_mutex_lock (pthread_mutex_t * mutex) * again inside the guarded section of ptw32_mutex_check_need_init() * to avoid race conditions. */ - if (*mutex == PTHREAD_MUTEX_INITIALIZER) + if (*mutex >= PTHREAD_ERRORCHECK_MUTEX_INITIALIZER) { if ((result = ptw32_mutex_check_need_init (mutex)) != 0) { |