forked from aniani/vim
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.
This commit is contained in:
@@ -3733,7 +3733,7 @@ vim_rename(char_u *from, char_u *to)
|
|||||||
return 0;
|
return 0;
|
||||||
// Strange, the second step failed. Try moving the
|
// Strange, the second step failed. Try moving the
|
||||||
// file back and return failure.
|
// file back and return failure.
|
||||||
mch_rename(tempname, (char *)from);
|
(void)mch_rename(tempname, (char *)from);
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
// If it fails for one temp name it will most likely fail
|
// If it fails for one temp name it will most likely fail
|
||||||
|
|||||||
@@ -750,6 +750,8 @@ static char *(features[]) =
|
|||||||
|
|
||||||
static int included_patches[] =
|
static int included_patches[] =
|
||||||
{ /* Add new patch number below this line */
|
{ /* Add new patch number below this line */
|
||||||
|
/**/
|
||||||
|
2828,
|
||||||
/**/
|
/**/
|
||||||
2827,
|
2827,
|
||||||
/**/
|
/**/
|
||||||
|
|||||||
Reference in New Issue
Block a user