mirror of
https://github.com/fish-shell/fish-shell.git
synced 2026-04-21 00:31:15 -03:00
wutil.cpp: fixup: don't involve the uninitialized parameter
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user