projects
/
musl
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
fix the type of wchar_t on arm; support wchar_t varying with arch
[musl]
/
src
/
thread
/
sem_init.c
diff --git
a/src/thread/sem_init.c
b/src/thread/sem_init.c
index
70f06e9
..
e8e419c
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;
}