commit c249389adb8a02faf1752e8762ee3ee7d6377212
parent 7651c432525fbeab496cc9c22775896db788a46d
Author: zeertzjq <zeertzjq@outlook.com>
Date: Sat, 31 May 2025 17:30:12 +0800
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
https://github.com/vim/vim/commit/d2079cff48117b121cd4afcc91fc14a696bdb142
Co-authored-by: Christian Brabandt <cb@256bit.org>
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/nvim/insexpand.c b/src/nvim/insexpand.c
@@ -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();