X-Git-Url: http://nsz.repo.hu/git/?a=blobdiff_plain;f=src%2Fthread%2Fpthread_attr_init.c;fp=src%2Fthread%2Fpthread_attr_init.c;h=6693488967ff29075549b994b2e02b307b46f65c;hb=efd4d87aa472523b07889af69874259db43b3c3c;hp=d91bf157408e6ead53284b25697c19f7f5a0f2f3;hpb=835f9f950e2f6059532bd9ab9857a856ed21a4fd;p=musl diff --git a/src/thread/pthread_attr_init.c b/src/thread/pthread_attr_init.c index d91bf157..66934889 100644 --- a/src/thread/pthread_attr_init.c +++ b/src/thread/pthread_attr_init.c @@ -1,7 +1,8 @@ #include "pthread_impl.h" +#include int pthread_attr_init(pthread_attr_t *a) { - memset(a, 0, sizeof *a); + *a = (pthread_attr_t){0}; return 0; }