From d2079cff48117b121cd4afcc91fc14a696bdb142 Mon Sep 17 00:00:00 2001 From: Christian Brabandt Date: Tue, 15 Apr 2025 18:10:26 +0200 Subject: [PATCH] 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 Signed-off-by: Christian Brabandt --- src/insexpand.c | 2 +- src/version.c | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/src/insexpand.c b/src/insexpand.c index 4afb3d9a81..c0762da908 100644 --- a/src/insexpand.c +++ b/src/insexpand.c @@ -6427,7 +6427,7 @@ cpt_compl_refresh(void) #ifdef FEAT_COMPL_FUNC char_u *cpt; char_u *p; - callback_T *cb; + callback_T *cb = NULL; // Make the completion list linear (non-cyclic) ins_compl_make_linear(); diff --git a/src/version.c b/src/version.c index 2758382375..90ddf0bab4 100644 --- a/src/version.c +++ b/src/version.c @@ -704,6 +704,8 @@ static char *(features[]) = static int included_patches[] = { /* Add new patch number below this line */ +/**/ + 1302, /**/ 1301, /**/