# HG changeset patch # User Bram Moolenaar # Date 1612379704 -3600 # Node ID ba4f8569ff8adf490bd4ab243173459a2ce55118 # Parent 403b0fa5bd37cfefb35d1e3a6a4195194e9b7d9b patch 8.2.2462: Coverity warns for not checking for fseek() error Commit: https://github.com/vim/vim/commit/2c363a2e95ee0b366e72063d093d20e025ef4a66 Author: Bram Moolenaar Date: Wed Feb 3 20:14:23 2021 +0100 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. diff --git a/src/spellfile.c b/src/spellfile.c --- a/src/spellfile.c +++ b/src/spellfile.c @@ -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) 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 */ /**/ + 2462, +/**/ 2461, /**/ 2460,