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 869db7f..2018169 100644
--- a/src/spellfile.c
+++ b/src/spellfile.c
@@ -6277,7 +6277,11 @@
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 522eaa8..a7288f3 100644
--- a/src/version.c
+++ b/src/version.c
@@ -751,6 +751,8 @@
static int included_patches[] =
{ /* Add new patch number below this line */
/**/
+ 2462,
+/**/
2461,
/**/
2460,