Patch 8.2.2462
Problem: Coverity warns for not checking for fseek() error.
Solution: Give an error message if fseek() fails.
Files: src/spellfile.c
*** ../vim-8.2.2461/src/spellfile.c 2020-09-02 12:58:44.535773436 +0200
--- src/spellfile.c 2021-02-03 20:12:49.743807179 +0100
***************
*** 6277,6283 ****
len, word, NameBuff);
}
}
! fseek(fd, fpos_next, SEEK_SET);
}
}
if (fd != NULL)
--- 6277,6287 ----
len, word, NameBuff);
}
}
! if (fseek(fd, fpos_next, SEEK_SET) != 0)
! {
! PERROR(_("Seek error in spellfile"));
! break;
! }
}
}
if (fd != NULL)
*** ../vim-8.2.2461/src/version.c 2021-02-03 20:01:16.777542349 +0100
--- src/version.c 2021-02-03 20:13:36.019677102 +0100
***************
*** 752,753 ****
--- 752,755 ----
{ /* Add new patch number below this line */
+ /**/
+ 2462,
/**/
--
FATHER: One day, lad, all this will be yours ...
PRINCE: What - the curtains?
"Monty Python and the Holy Grail" PYTHON (MONTY) PICTURES LTD
/// Bram Moolenaar -- [email protected] -- http://www.Moolenaar.net \\\
/// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
\\\ an exciting new programming language -- http://www.Zimbu.org ///
\\\ help me help AIDS victims -- http://ICCF-Holland.org ///
--
--
You received this message from the "vim_dev" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php
---
You received this message because you are subscribed to the Google Groups
"vim_dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/vim_dev/202102031914.113JEmNt1848690%40masaka.moolenaar.net.