mirror of
https://github.com/vim/vim.git
synced 2025-09-30 04:44:14 -04:00
patch 8.2.2462: Coverity warns for not checking for fseek() error
Problem: Coverity warns for not checking for fseek() error. Solution: Give an error message if fseek() fails.
This commit is contained in:
@@ -6277,7 +6277,11 @@ spell_add_word(
|
||||
len, word, NameBuff);
|
||||
}
|
||||
}
|
||||
fseek(fd, fpos_next, SEEK_SET);
|
||||
if (fseek(fd, fpos_next, SEEK_SET) != 0)
|
||||
{
|
||||
PERROR(_("Seek error in spellfile"));
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
if (fd != NULL)
|
||||
|
@@ -750,6 +750,8 @@ static char *(features[]) =
|
||||
|
||||
static int included_patches[] =
|
||||
{ /* Add new patch number below this line */
|
||||
/**/
|
||||
2462,
|
||||
/**/
|
||||
2461,
|
||||
/**/
|
||||
|
Reference in New Issue
Block a user