X-Git-Url: http://nsz.repo.hu/git/?a=blobdiff_plain;f=src%2Fthread%2Fpthread_mutex_init.c;h=9d85a354794611676acc87ce51accbd8350f96ae;hb=8f6ec7217f9d5446205b0b0dedb627b79e416363;hp=a7ba39baac06821a528cbd02f1b5a57e349c57d8;hpb=c6d441e3a246370d9c459396ec22b096db93850e;p=musl diff --git a/src/thread/pthread_mutex_init.c b/src/thread/pthread_mutex_init.c index a7ba39ba..9d85a354 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 & 7; return 0; }