aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorzeertzjq <zeertzjq@outlook.com>2024-03-22 06:04:11 +0800
committerGitHub <noreply@github.com>2024-03-22 06:04:11 +0800
commit774455dc371736e83afc62eca67ceec3e2dedb5d (patch)
tree88332a00c40e5f8190b4c510bda4ef6b4821d6f8
parent2289ecd22e2c8b516f51eed4a79411c17e0dba86 (diff)
downloadrneovim-774455dc371736e83afc62eca67ceec3e2dedb5d.tar.gz
rneovim-774455dc371736e83afc62eca67ceec3e2dedb5d.tar.bz2
rneovim-774455dc371736e83afc62eca67ceec3e2dedb5d.zip
vim-patch:9.1.0194: gcc complains about uninitialized var (#27970)
Problem: gcc complains about uninitialized var (Tony Mechelynck) Solution: initialize to NULL https://github.com/vim/vim/commit/9eb236f455df75af858a37a3d98f190c977deaf4 Co-authored-by: Christian Brabandt <cb@256bit.org>
-rw-r--r--src/nvim/insexpand.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/nvim/insexpand.c b/src/nvim/insexpand.c
index 46936ea2bd..fe5faf8c10 100644
--- a/src/nvim/insexpand.c
+++ b/src/nvim/insexpand.c
@@ -2774,7 +2774,7 @@ static void get_complete_info(list_T *what_list, dict_T *retdict)
}
if (ret == OK && (what_flag & CI_WHAT_ITEMS || what_flag & CI_WHAT_SELECTED)) {
- list_T *li;
+ list_T *li = NULL;
int selected_idx = -1;
if (what_flag & CI_WHAT_ITEMS) {
li = tv_list_alloc(kListLenMayKnow);