diff options
author | Bram Moolenaar <Bram@vim.org> | 2021-05-03 19:49:51 +0200 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2021-05-03 19:49:51 +0200 |
commit | 97a6c6a1fb6043fd6520fbaaafc6970334186167 (patch) | |
tree | f9bac70a208fbd5e2ad110073a8fa5238bd55be8 /src/fileio.c | |
parent | 5f8ed7408aaf477215bcfde3e487e24b9e6ad870 (diff) | |
download | vim-git-97a6c6a1fb6043fd6520fbaaafc6970334186167.tar.gz |
patch 8.2.2828: Coverity complains about not checking rename() return valuev8.2.2828
Problem: Coverity complains about not checking the rename() return value.
Solution: Add "(void)", can't do anything in case of a failure.
Diffstat (limited to 'src/fileio.c')
-rw-r--r-- | src/fileio.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/fileio.c b/src/fileio.c index 1af0b4c59..b59c01d26 100644 --- a/src/fileio.c +++ b/src/fileio.c @@ -3733,7 +3733,7 @@ vim_rename(char_u *from, char_u *to) return 0; // Strange, the second step failed. Try moving the // file back and return failure. - mch_rename(tempname, (char *)from); + (void)mch_rename(tempname, (char *)from); return -1; } // If it fails for one temp name it will most likely fail |