mirror of
https://github.com/fluencelabs/musl
synced 2025-07-07 02:22:06 +00:00
fix useless use of potentially-uninitialized mode variable in sem_open
This commit is contained in:
@ -93,7 +93,7 @@ sem_t *sem_open(const char *name, int flags, ...)
|
|||||||
|
|
||||||
for (;;) {
|
for (;;) {
|
||||||
if (!(flags & O_EXCL)) {
|
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 (fd >= 0 || errno != ENOENT) {
|
||||||
if (flags & O_CREAT) {
|
if (flags & O_CREAT) {
|
||||||
close(dir);
|
close(dir);
|
||||||
|
Reference in New Issue
Block a user