X-Git-Url: http://nsz.repo.hu/git/?p=musl;a=blobdiff_plain;f=src%2Fthread%2Fpthread_mutex_init.c;h=75ddf02bc129e4398d7ccf1b4bbfc0d0234d2437;hp=6e23df139a213f64b036b901fa9f933c7cf59419;hb=e7655ed37bc9c2d79d921af4f287ee5cf2788661;hpb=4820f9268d3dc1f2aac923de0a591ffd5d54ea89 diff --git a/src/thread/pthread_mutex_init.c b/src/thread/pthread_mutex_init.c index 6e23df13..75ddf02b 100644 --- a/src/thread/pthread_mutex_init.c +++ b/src/thread/pthread_mutex_init.c @@ -3,6 +3,6 @@ int pthread_mutex_init(pthread_mutex_t *m, const pthread_mutexattr_t *a) { memset(m, 0, sizeof *m); - if (a) m->_m_type = *a & 3; + if (a) m->_m_type = *a & 7; return 0; }