patch 9.0.0878: Coverity warns for dead code
Problem: Coverity warns for dead code.
Solution: Remove the dead code.
diff --git a/src/cmdhist.c b/src/cmdhist.c
index c46a3a6..ea95547 100644
--- a/src/cmdhist.c
+++ b/src/cmdhist.c
@@ -137,7 +137,7 @@
// history length changed
for (type = 0; type < HIST_COUNT; ++type) // adjust the tables
{
- if (newlen)
+ if (newlen > 0)
{
temp = ALLOC_MULT(histentry_T, newlen);
if (temp == NULL) // out of memory!
@@ -157,9 +157,6 @@
else
temp = NULL;
- if (newlen != 0 && temp == NULL)
- continue;
-
if (hisidx[type] < 0) // there are no entries yet
{
for (i = 0; i < newlen; ++i)
diff --git a/src/version.c b/src/version.c
index a764712..f294ed5 100644
--- a/src/version.c
+++ b/src/version.c
@@ -696,6 +696,8 @@
static int included_patches[] =
{ /* Add new patch number below this line */
/**/
+ 878,
+/**/
877,
/**/
876,