mirror of
https://github.com/vim/vim.git
synced 2025-09-29 04:34:16 -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)
|
||||
|
Reference in New Issue
Block a user