X-Git-Url: http://nsz.repo.hu/git/?a=blobdiff_plain;f=src%2Fthread%2Fpthread_mutex_init.c;h=acf45a74687bcf3d8dfb6ac7d4e9107d922b4fe2;hb=b1dfb734a45d4f74c7a24c5f07d37f7e74451802;hp=a7ba39baac06821a528cbd02f1b5a57e349c57d8;hpb=efd4d87aa472523b07889af69874259db43b3c3c;p=musl diff --git a/src/thread/pthread_mutex_init.c b/src/thread/pthread_mutex_init.c index a7ba39ba..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 & 7; + if (a) m->_m_type = a->__attr; return 0; }