From e5362a4ae57addc82e052dd8ff3040afd38dbe8a Mon Sep 17 00:00:00 2001 From: Aaron Gyes Date: Mon, 8 Apr 2019 16:02:00 -0700 Subject: [PATCH] wutil.cpp: fixup: don't involve the uninitialized parameter --- src/wutil.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/wutil.cpp b/src/wutil.cpp index 5813334e8..98a49251a 100644 --- a/src/wutil.cpp +++ b/src/wutil.cpp @@ -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; }