aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/fileio.c
diff options
context:
space:
mode:
authorJustin M. Keyes <justinkz@gmail.com>2016-05-29 00:05:49 -0400
committerJustin M. Keyes <justinkz@gmail.com>2016-05-29 00:05:49 -0400
commitecbc9dbdfeebc3593f178127f44ef979b446b633 (patch)
tree1483707010a987c2b31d32b2bc427d81343735b1 /src/nvim/fileio.c
parent1e70ebe849e3e2a0bf9605485d5ef8c6b86b0e52 (diff)
parentcf29b4025d67b92755f37947445731ac099a1560 (diff)
downloadrneovim-ecbc9dbdfeebc3593f178127f44ef979b446b633.tar.gz
rneovim-ecbc9dbdfeebc3593f178127f44ef979b446b633.tar.bz2
rneovim-ecbc9dbdfeebc3593f178127f44ef979b446b633.zip
Merge pull request #4740 from brcolow/vim-7.4.1276
vim-patch:7.4.1276
Diffstat (limited to 'src/nvim/fileio.c')
-rw-r--r--src/nvim/fileio.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/nvim/fileio.c b/src/nvim/fileio.c
index db1469db97..4d9e10fb85 100644
--- a/src/nvim/fileio.c
+++ b/src/nvim/fileio.c
@@ -1749,8 +1749,9 @@ failed:
#ifdef HAVE_FD_CLOEXEC
else {
int fdflags = fcntl(fd, F_GETFD);
- if (fdflags >= 0 && (fdflags & FD_CLOEXEC) == 0)
- fcntl(fd, F_SETFD, fdflags | FD_CLOEXEC);
+ if (fdflags >= 0 && (fdflags & FD_CLOEXEC) == 0) {
+ (void)fcntl(fd, F_SETFD, fdflags | FD_CLOEXEC);
+ }
}
#endif
xfree(buffer);