changeset 22963:317462da618a v8.2.2028

patch 8.2.2028: Coverity warns for using an uninitialized variable Commit: https://github.com/vim/vim/commit/896ad2c33e562e4b674b7e0efbd43be85a64acc8 Author: Bram Moolenaar <Bram@vim.org> Date: Sat Nov 21 14:03:43 2020 +0100 patch 8.2.2028: Coverity warns for using an uninitialized variable Problem: Coverity warns for using an uninitialized variable. Solution: Initialize to NULL.
author Bram Moolenaar <Bram@vim.org>
date Sat, 21 Nov 2020 14:15:03 +0100
parents 200234f07132
children 59566faad32b
files src/eval.c src/version.c
diffstat 2 files changed, 3 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/eval.c
+++ b/src/eval.c
@@ -791,7 +791,7 @@ get_lval(
     listitem_T	*ni;
     char_u	*key = NULL;
     int		len;
-    hashtab_T	*ht;
+    hashtab_T	*ht = NULL;
     int		quiet = flags & GLV_QUIET;
 
     // Clear everything in "lp".
--- a/src/version.c
+++ b/src/version.c
@@ -751,6 +751,8 @@ static char *(features[]) =
 static int included_patches[] =
 {   /* Add new patch number below this line */
 /**/
+    2028,
+/**/
     2027,
 /**/
     2026,