1
0
forked from aniani/vim

patch 9.0.0878: Coverity warns for dead code

Problem:    Coverity warns for dead code.
Solution:   Remove the dead code.
This commit is contained in:
Bram Moolenaar 2022-11-14 14:36:41 +00:00
parent cf2594fbf3
commit b298fe6cba
2 changed files with 3 additions and 4 deletions

View File

@ -137,7 +137,7 @@ init_history(void)
// history length changed // history length changed
for (type = 0; type < HIST_COUNT; ++type) // adjust the tables for (type = 0; type < HIST_COUNT; ++type) // adjust the tables
{ {
if (newlen) if (newlen > 0)
{ {
temp = ALLOC_MULT(histentry_T, newlen); temp = ALLOC_MULT(histentry_T, newlen);
if (temp == NULL) // out of memory! if (temp == NULL) // out of memory!
@ -157,9 +157,6 @@ init_history(void)
else else
temp = NULL; temp = NULL;
if (newlen != 0 && temp == NULL)
continue;
if (hisidx[type] < 0) // there are no entries yet if (hisidx[type] < 0) // there are no entries yet
{ {
for (i = 0; i < newlen; ++i) for (i = 0; i < newlen; ++i)

View File

@ -695,6 +695,8 @@ static char *(features[]) =
static int included_patches[] = static int included_patches[] =
{ /* Add new patch number below this line */ { /* Add new patch number below this line */
/**/
878,
/**/ /**/
877, 877,
/**/ /**/