mirror of
https://github.com/fluencelabs/musl
synced 2025-06-30 15:11:55 +00:00
fix uninitialized waiters field in semaphores
This commit is contained in:
@ -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;
|
||||
}
|
||||
|
Reference in New Issue
Block a user