clean up sloppy nested inclusion from pthread_impl.h
[musl] / src / thread / pthread_rwlockattr_init.c
index e0893d6..e742069 100644 (file)
@@ -2,6 +2,6 @@
 
 int pthread_rwlockattr_init(pthread_rwlockattr_t *a)
 {
-       memset(a, 0, sizeof *a);
+       *a = (pthread_rwlockattr_t){0};
        return 0;
 }