mirror of
https://github.com/neovim/neovim.git
synced 2026-03-31 21:02:11 +00:00
vim-patch:9.1.1302: Coverity warns about using uninitialized value
Problem: Coverity warns about using uninitialized value
(Coverity, Tony Mechelynck, after v9.1.1301)
Solution: initialize callback pointer to NULL
d2079cff48
Co-authored-by: Christian Brabandt <cb@256bit.org>
This commit is contained in:
@@ -5809,7 +5809,7 @@ static void get_cpt_func_completion_matches(Callback *cb)
|
||||
/// 'refresh:always' flag is set.
|
||||
static void cpt_compl_refresh(void)
|
||||
{
|
||||
Callback *cb;
|
||||
Callback *cb = NULL;
|
||||
|
||||
// Make the completion list linear (non-cyclic)
|
||||
ins_compl_make_linear();
|
||||
|
||||
Reference in New Issue
Block a user