From 5ea38abd533735e0173d35684c03285745048054 Mon Sep 17 00:00:00 2001 From: Jan Edmund Lazo Date: Sat, 21 Nov 2020 12:00:35 -0500 Subject: [PATCH] vim-patch:8.2.2028: Coverity warns for using an uninitialized variable MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Problem: Coverity warns for using an uninitialized variable. Solution: Initialize to NULL. https://github.com/vim/vim/commit/896ad2c33e562e4b674b7e0efbd43be85a64acc8 N/A patches for version.c: vim-patch:8.1.1749: Coverity warns for using negative index Problem: Coverity warns for using negative index. Solution: Move using index inside "if". https://github.com/vim/vim/commit/736cd2cfbe83b85259eecc7d70e68297ce968d33 vim-patch:8.2.0579: Coverity warns for unused value Problem: Coverity warns for unused value. Solution: Change order and use "else if". https://github.com/vim/vim/commit/4d5d0dfe9438bd5f2daa41ebbe6ac9a76d165af0 vim-patch:8.2.2025: Amiga: Not all colors are used on OS4 Problem: Amiga: Not all colors are used on OS4. Solution: Adjust the #ifdef to include __amigaos4__. (Ola Söder, closes vim/vim#7328) https://github.com/vim/vim/commit/2d718267f4b7dcd65261c9f2acd59a6f6bdc8641 --- src/nvim/eval.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/nvim/eval.c b/src/nvim/eval.c index b483209f83..1bd9ed73bd 100644 --- a/src/nvim/eval.c +++ b/src/nvim/eval.c @@ -1971,7 +1971,7 @@ char_u *get_lval(char_u *const name, typval_T *const rettv, typval_T var2; int empty1 = FALSE; listitem_T *ni; - hashtab_T *ht; + hashtab_T *ht = NULL; int quiet = flags & GLV_QUIET; // Clear everything in "lp".