To: vim_dev@googlegroups.com Subject: Patch 9.0.0878 Fcc: outbox From: Bram Moolenaar Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit ------------ 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 -- Bram@Moolenaar.net -- http://www.Moolenaar.net \\\ /// \\\ \\\ sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ /// \\\ help me help AIDS victims -- http://ICCF-Holland.org ///