summaryrefslogtreecommitdiff
path: root/mutex.c
diff options
context:
space:
mode:
Diffstat (limited to 'mutex.c')
-rw-r--r--mutex.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/mutex.c b/mutex.c
index 578617d..b88eac4 100644
--- a/mutex.c
+++ b/mutex.c
@@ -451,7 +451,7 @@ pthread_mutex_lock(pthread_mutex_t *mutex)
* again inside the guarded section of _mutex_check_need_init()
* to avoid race conditions.
*/
- if (mutex->staticinit)
+ if (mutex->staticinit == 1)
{
result = _mutex_check_need_init(mutex);
}