X-Git-Url: http://nsz.repo.hu/git/?p=musl;a=blobdiff_plain;f=src%2Fthread%2Fpthread_cond_init.c;h=71489bca2c317ed2f3055562283fe393b2e9653c;hp=2eac30f15e8b7903152a934a5d44533f0617b76d;hb=e864ddc36819814b3b9ed17620459d66add512d3;hpb=400c5e5c8307a2ebe44ef1f203f5a15669f20347 diff --git a/src/thread/pthread_cond_init.c b/src/thread/pthread_cond_init.c index 2eac30f1..71489bca 100644 --- a/src/thread/pthread_cond_init.c +++ b/src/thread/pthread_cond_init.c @@ -2,7 +2,7 @@ int pthread_cond_init(pthread_cond_t *restrict c, const pthread_condattr_t *restrict a) { - memset(c, 0, sizeof *c); + *c = (pthread_cond_t){0}; if (a) { c->_c_clock = *a & 0x7fffffff; if (*a>>31) c->_c_mutex = (void *)-1;