From: Bram Moolenaar Date: Wed, 3 Feb 2021 19:14:23 +0000 (+0100) Subject: patch 8.2.2462: Coverity warns for not checking for fseek() error X-Git-Tag: v8.2.2462 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=2c363a2e95ee0b366e72063d093d20e025ef4a66;p=vim 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 index 869db7f3f..20181695a 100644 --- 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 index 522eaa80d..a7288f385 100644 --- a/src/version.c +++ b/src/version.c @@ -750,6 +750,8 @@ static char *(features[]) = static int included_patches[] = { /* Add new patch number below this line */ +/**/ + 2462, /**/ 2461, /**/