fix uninitialized waiters field in semaphores
This commit is contained in:
parent
43ee4df338
commit
4f24994920
1 changed files with 1 additions and 0 deletions
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue