mirror of
https://github.com/fish-shell/fish-shell
synced 2024-12-26 04:43:10 +00:00
wutil.cpp: fixup: don't involve the uninitialized parameter
This commit is contained in:
parent
8eb05f8731
commit
e5362a4ae5
1 changed files with 1 additions and 1 deletions
|
@ -176,7 +176,7 @@ FILE *wfopen(const wcstring &path, const char *mode) {
|
|||
}
|
||||
|
||||
bool set_cloexec(int fd) {
|
||||
int flags = fcntl(fd, F_SETFD, flags | FD_CLOEXEC);
|
||||
int flags = fcntl(fd, F_SETFD, FD_CLOEXEC);
|
||||
if (flags == -1) return false;
|
||||
return true;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue