diff options
Diffstat (limited to 'nptl/pthread_cond_init.c')
-rw-r--r-- | nptl/pthread_cond_init.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/nptl/pthread_cond_init.c b/nptl/pthread_cond_init.c index 73ae4321b0..bb7c6d6ca1 100644 --- a/nptl/pthread_cond_init.c +++ b/nptl/pthread_cond_init.c @@ -36,6 +36,8 @@ __pthread_cond_init (cond, cond_attr) cond->__data.__total_seq = 0; cond->__data.__wakeup_seq = 0; cond->__data.__woken_seq = 0; + cond->__data.__mutex = (icond_attr == NULL || (icond_attr->value & 1) == 0 + ? NULL : (void *) ~0l); return 0; } |