From 774455dc371736e83afc62eca67ceec3e2dedb5d Mon Sep 17 00:00:00 2001 From: zeertzjq Date: Fri, 22 Mar 2024 06:04:11 +0800 Subject: 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 --- src/nvim/insexpand.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); -- cgit