]> git.ipfire.org Git - thirdparty/vim.git/commitdiff
patch 9.1.1302: Coverity warns about using uninitialized value v9.1.1302
authorChristian Brabandt <cb@256bit.org>
Tue, 15 Apr 2025 16:10:26 +0000 (18:10 +0200)
committerChristian Brabandt <cb@256bit.org>
Tue, 15 Apr 2025 16:10:26 +0000 (18:10 +0200)
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 <cb@256bit.org>
src/insexpand.c
src/version.c

index 4afb3d9a819c0e5e63ed8c8dc62d3de568b42a88..c0762da9081fdca00b1571e61a5494c8e84a4ed2 100644 (file)
@@ -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();
index 2758382375d888ff6e30604f36c0c0672d75f4e1..90ddf0bab44f35d090b1cdb37aee29a7d0808dd2 100644 (file)
@@ -704,6 +704,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    1302,
 /**/
     1301,
 /**/