summaryrefslogtreecommitdiff
path: root/src/thread
diff options
context:
space:
mode:
authorRich Felker <dalias@aerifal.cx>2011-06-26 16:34:05 -0400
committerRich Felker <dalias@aerifal.cx>2011-06-26 16:34:05 -0400
commit6e53a6eca42ec40d12dced55f4840df883e2f76e (patch)
treecba1f86b477a803058852bee1e7f46cde82712a8 /src/thread
parent5d0965cb56f92e24b36b98882543f8ee1e03b5ff (diff)
downloadmusl-6e53a6eca42ec40d12dced55f4840df883e2f76e.tar.gz
fix useless use of potentially-uninitialized mode variable in sem_open
Diffstat (limited to 'src/thread')
-rw-r--r--src/thread/sem_open.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/thread/sem_open.c b/src/thread/sem_open.c
index 809925d2..d8d68392 100644
--- a/src/thread/sem_open.c
+++ b/src/thread/sem_open.c
@@ -93,7 +93,7 @@ sem_t *sem_open(const char *name, int flags, ...)
for (;;) {
if (!(flags & O_EXCL)) {
- fd = shm_open(name, flags&~O_CREAT, mode);
+ fd = shm_open(name, flags&~O_CREAT, 0);
if (fd >= 0 || errno != ENOENT) {
if (flags & O_CREAT) {
close(dir);