comparison src/spellfile.c @ 23841:ba4f8569ff8a v8.2.2462

patch 8.2.2462: Coverity warns for not checking for fseek() error Commit: https://github.com/vim/vim/commit/2c363a2e95ee0b366e72063d093d20e025ef4a66 Author: Bram Moolenaar <Bram@vim.org> 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.
author Bram Moolenaar <Bram@vim.org>
date Wed, 03 Feb 2021 20:15:04 +0100
parents f33de1c1eb4a
children 59cfa23bd9eb
comparison
equal deleted inserted replaced
23840:403b0fa5bd37 23841:ba4f8569ff8a
6275 home_replace(NULL, fname, NameBuff, MAXPATHL, TRUE); 6275 home_replace(NULL, fname, NameBuff, MAXPATHL, TRUE);
6276 smsg(_("Word '%.*s' removed from %s"), 6276 smsg(_("Word '%.*s' removed from %s"),
6277 len, word, NameBuff); 6277 len, word, NameBuff);
6278 } 6278 }
6279 } 6279 }
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 }
6281 } 6285 }
6282 } 6286 }
6283 if (fd != NULL) 6287 if (fd != NULL)
6284 fclose(fd); 6288 fclose(fd);
6285 } 6289 }