mirror of
https://github.com/neovim/neovim.git
synced 2025-09-30 15:08:35 +00:00
vim-patch:9.1.0194: gcc complains about uninitialized var (#27970)
Problem: gcc complains about uninitialized var
(Tony Mechelynck)
Solution: initialize to NULL
9eb236f455
Co-authored-by: Christian Brabandt <cb@256bit.org>
This commit is contained in:
@@ -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);
|
||||
|
Reference in New Issue
Block a user