diff options
author | Bram Moolenaar <Bram@vim.org> | 2020-11-21 14:03:43 +0100 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2020-11-21 14:03:43 +0100 |
commit | 896ad2c33e562e4b674b7e0efbd43be85a64acc8 (patch) | |
tree | 45d95d44ffc11e1bf3198e201ace262614167cb5 | |
parent | 9681f713924f4c51fa2ba3d6639639d4b1dba08a (diff) | |
download | vim-git-896ad2c33e562e4b674b7e0efbd43be85a64acc8.tar.gz |
patch 8.2.2028: Coverity warns for using an uninitialized variablev8.2.2028
Problem: Coverity warns for using an uninitialized variable.
Solution: Initialize to NULL.
-rw-r--r-- | src/eval.c | 2 | ||||
-rw-r--r-- | src/version.c | 2 |
2 files changed, 3 insertions, 1 deletions
diff --git a/src/eval.c b/src/eval.c index 0365adc89..33976d2a8 100644 --- 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". diff --git a/src/version.c b/src/version.c index 95a0f8ca3..0583f64b9 100644 --- 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, |