# HG changeset patch # User Bram Moolenaar # Date 1620064804 -7200 # Node ID 096f2b8d9cf46e1214108bae4adb13ae3886eeb1 # Parent 2cf982bc109e29fa7e7aa72eaa86b97bed778b2a patch 8.2.2828: Coverity complains about not checking rename() return value Commit: https://github.com/vim/vim/commit/97a6c6a1fb6043fd6520fbaaafc6970334186167 Author: Bram Moolenaar Date: Mon May 3 19:49:51 2021 +0200 patch 8.2.2828: Coverity complains about not checking rename() return value Problem: Coverity complains about not checking the rename() return value. Solution: Add "(void)", can't do anything in case of a failure. diff --git a/src/fileio.c b/src/fileio.c --- 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 diff --git a/src/version.c b/src/version.c --- a/src/version.c +++ b/src/version.c @@ -751,6 +751,8 @@ static char *(features[]) = static int included_patches[] = { /* Add new patch number below this line */ /**/ + 2828, +/**/ 2827, /**/ 2826,