wutil.cpp: fixup: don't involve the uninitialized parameter

This commit is contained in:
Aaron Gyes 2019-04-08 16:02:00 -07:00
parent 8eb05f8731
commit e5362a4ae5

View file

@ -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;
}