Patch 9.0.0878 (after 9.0.0872)
Problem: Coverity warns for dead code.
Solution: Remove the dead code.
Files: src/cmdhist.c
*** ../vim-9.0.0877/src/cmdhist.c 2022-11-13 18:11:13.779781164 +0000
--- src/cmdhist.c 2022-11-14 14:35:19.919618930 +0000
***************
*** 137,143 ****
// history length changed
for (type = 0; type < HIST_COUNT; ++type) // adjust the tables
{
! if (newlen)
{
temp = ALLOC_MULT(histentry_T, newlen);
if (temp == NULL) // out of memory!
--- 137,143 ----
// history length changed
for (type = 0; type < HIST_COUNT; ++type) // adjust the tables
{
! if (newlen > 0)
{
temp = ALLOC_MULT(histentry_T, newlen);
if (temp == NULL) // out of memory!
***************
*** 157,165 ****
else
temp = NULL;
- if (newlen != 0 && temp == NULL)
- continue;
-
if (hisidx[type] < 0) // there are no entries yet
{
for (i = 0; i < newlen; ++i)
--- 157,162 ----
*** ../vim-9.0.0877/src/version.c 2022-11-13 23:30:02.423807434 +0000
--- src/version.c 2022-11-14 14:36:11.843663747 +0000
***************
*** 697,698 ****
--- 697,700 ----
{ /* Add new patch number below this line */
+ /**/
+ 878,
/**/
--
I'm trying to be an optimist, but I don't think it'll work.
/// Bram Moolenaar -- [email protected] -- http://www.Moolenaar.net \\\
/// \\\
\\\ sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ ///
\\\ 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/20221114143707.C5E7B1C0473%40moolenaar.net.