From: Rich Felker Date: Tue, 19 Apr 2011 17:16:59 +0000 (-0400) Subject: fix uninitialized waiters field in semaphores X-Git-Tag: v0.7.9~22 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=4f24994920cf3c8a9a6f60d4573a7673a3095b02;p=oweals%2Fmusl.git fix uninitialized waiters field in semaphores --- diff --git a/src/thread/sem_init.c b/src/thread/sem_init.c index 70f06e9f..e8e419cf 100644 --- a/src/thread/sem_init.c +++ b/src/thread/sem_init.c @@ -9,5 +9,6 @@ int sem_init(sem_t *sem, int pshared, unsigned value) return -1; } sem->__val[0] = value; + sem->__val[1] = 0; return 0; }