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.
2c363a2e95
This commit is contained in:
Jan Edmund Lazo
2021-02-03 18:36:27 -05:00
parent 8d3baf0791
commit 02cda35cf7

View File

@@ -5387,7 +5387,8 @@ spell_add_word (
len, word, NameBuff); len, word, NameBuff);
} }
} }
if (fseek(fd, fpos_next, SEEK_SET) <= 0) { if (fseek(fd, fpos_next, SEEK_SET) != 0) {
PERROR(_("Seek error in spellfile"));
break; break;
} }
} }