Skip to content

Commit 2c363a2

Browse files
committed
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.
1 parent fef8064 commit 2c363a2

2 files changed

Lines changed: 7 additions & 1 deletion

File tree

src/spellfile.c

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6277,7 +6277,11 @@ spell_add_word(
62776277
len, word, NameBuff);
62786278
}
62796279
}
6280-
fseek(fd, fpos_next, SEEK_SET);
6280+
if (fseek(fd, fpos_next, SEEK_SET) != 0)
6281+
{
6282+
PERROR(_("Seek error in spellfile"));
6283+
break;
6284+
}
62816285
}
62826286
}
62836287
if (fd != NULL)

src/version.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -750,6 +750,8 @@ static char *(features[]) =
750750

751751
static int included_patches[] =
752752
{ /* Add new patch number below this line */
753+
/**/
754+
2462,
753755
/**/
754756
2461,
755757
/**/

0 commit comments

Comments
 (0)