X-Git-Url: http://nsz.repo.hu/git/?a=blobdiff_plain;f=src%2Fthread%2Fpthread_mutex_init.c;h=acf45a74687bcf3d8dfb6ac7d4e9107d922b4fe2;hb=e95538fa07d2b460b25ee6c2fef05f820888776d;hp=9d85a354794611676acc87ce51accbd8350f96ae;hpb=0109d950e685f1c5f6cef245a8b1bc47c9b6d94c;p=musl diff --git a/src/thread/pthread_mutex_init.c b/src/thread/pthread_mutex_init.c index 9d85a354..acf45a74 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 *restrict m, const pthread_mutexattr_t *restrict a) { *m = (pthread_mutex_t){0}; - if (a) m->_m_type = a->__attr & 7; + if (a) m->_m_type = a->__attr; return 0; }