projects
/
oweals
/
musl.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
43ee4df
)
fix uninitialized waiters field in semaphores
author
Rich Felker
<dalias@aerifal.cx>
Tue, 19 Apr 2011 17:16:59 +0000
(13:16 -0400)
committer
Rich Felker
<dalias@aerifal.cx>
Tue, 19 Apr 2011 17:16:59 +0000
(13:16 -0400)
src/thread/sem_init.c
patch
|
blob
|
history
diff --git
a/src/thread/sem_init.c
b/src/thread/sem_init.c
index 70f06e9f6e1112567ce39e646e8ecab3aa37e81d..e8e419cf74976cbee14e3efcfa0f3929199966b7 100644
(file)
--- 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;
}