getaddrinfo: add EAI_NODATA error code to distinguish NODATA vs NxDomain
[musl] / src / thread / pthread_mutex_init.c
index a7ba39b..acf45a7 100644 (file)
@@ -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;
 }