aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/ex_cmds2.c
diff options
context:
space:
mode:
authorJustin M. Keyes <justinkz@gmail.com>2016-04-25 04:12:04 -0400
committerJustin M. Keyes <justinkz@gmail.com>2016-04-25 04:12:04 -0400
commit6f980346864251d2ed86d85c63fd6ec375e21edc (patch)
treee640731f2b18974afab3f83c5241f83adb1fd5a1 /src/nvim/ex_cmds2.c
parent588bc1d9586bc65b63519bc9d292fa4ab59b2dba (diff)
parent23e8d6d94b74c7b6d4e4c766e34500ff220abe96 (diff)
downloadrneovim-6f980346864251d2ed86d85c63fd6ec375e21edc.tar.gz
rneovim-6f980346864251d2ed86d85c63fd6ec375e21edc.tar.bz2
rneovim-6f980346864251d2ed86d85c63fd6ec375e21edc.zip
Merge pull request #4632 from KillTheMule/vim-7.4.822
vim-patch:7.4.822
Diffstat (limited to 'src/nvim/ex_cmds2.c')
-rw-r--r--src/nvim/ex_cmds2.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/nvim/ex_cmds2.c b/src/nvim/ex_cmds2.c
index 2c8271c696..a0a0b9d3a5 100644
--- a/src/nvim/ex_cmds2.c
+++ b/src/nvim/ex_cmds2.c
@@ -2373,8 +2373,9 @@ static FILE *fopen_noinh_readbin(char *filename)
# ifdef HAVE_FD_CLOEXEC
{
int fdflags = fcntl(fd_tmp, F_GETFD);
- if (fdflags >= 0 && (fdflags & FD_CLOEXEC) == 0)
- fcntl(fd_tmp, F_SETFD, fdflags | FD_CLOEXEC);
+ if (fdflags >= 0 && (fdflags & FD_CLOEXEC) == 0) {
+ (void)fcntl(fd_tmp, F_SETFD, fdflags | FD_CLOEXEC);
+ }
}
# endif