0
0
mirror of https://github.com/vim/vim.git synced 2025-09-24 03:44:06 -04:00

patch 8.2.2028: Coverity warns for using an uninitialized variable

Problem:    Coverity warns for using an uninitialized variable.
Solution:   Initialize to NULL.
This commit is contained in:
Bram Moolenaar
2020-11-21 14:03:43 +01:00
parent 9681f71392
commit 896ad2c33e
2 changed files with 3 additions and 1 deletions

View File

@@ -791,7 +791,7 @@ get_lval(
listitem_T *ni; listitem_T *ni;
char_u *key = NULL; char_u *key = NULL;
int len; int len;
hashtab_T *ht; hashtab_T *ht = NULL;
int quiet = flags & GLV_QUIET; int quiet = flags & GLV_QUIET;
// Clear everything in "lp". // Clear everything in "lp".

View File

@@ -750,6 +750,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 */
/**/
2028,
/**/ /**/
2027, 2027,
/**/ /**/