aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/ex_cmds2.c
diff options
context:
space:
mode:
authorKillTheMule <KillTheMule@users.noreply.github.com>2016-04-23 23:00:59 +0200
committerKillTheMule <KillTheMule@users.noreply.github.com>2016-04-23 23:43:39 +0200
commit23e8d6d94b74c7b6d4e4c766e34500ff220abe96 (patch)
tree3f123ab5a045953af2a8985385df30be78f1fa96 /src/nvim/ex_cmds2.c
parent445f0d7eed7c96aa30780622e6ee437794529547 (diff)
downloadrneovim-23e8d6d94b74c7b6d4e4c766e34500ff220abe96.tar.gz
rneovim-23e8d6d94b74c7b6d4e4c766e34500ff220abe96.tar.bz2
rneovim-23e8d6d94b74c7b6d4e4c766e34500ff220abe96.zip
Linting.
Diffstat (limited to 'src/nvim/ex_cmds2.c')
-rw-r--r--src/nvim/ex_cmds2.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/nvim/ex_cmds2.c b/src/nvim/ex_cmds2.c
index 1005e1bbaa..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)
+ if (fdflags >= 0 && (fdflags & FD_CLOEXEC) == 0) {
(void)fcntl(fd_tmp, F_SETFD, fdflags | FD_CLOEXEC);
+ }
}
# endif