]> git.ipfire.org Git - thirdparty/vim.git/commitdiff
patch 9.0.2175: Compiler warning for uninitialized var v9.0.2175
authorYegappan Lakshmanan <yegappan@yahoo.com>
Mon, 18 Dec 2023 07:58:29 +0000 (08:58 +0100)
committerChristian Brabandt <cb@256bit.org>
Mon, 18 Dec 2023 07:58:29 +0000 (08:58 +0100)
Problem:  Compiler warning for uninitialized var
Solution: initialize variable to NULL

closes: #13711

Signed-off-by: Yegappan Lakshmanan <yegappan@yahoo.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
src/version.c
src/vim9cmds.c

index 50660311da60d2438e34baf1fadc94296aba17a2..78fb3e01f659e050d111773a129d4060093e5b09 100644 (file)
@@ -704,6 +704,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    2175,
 /**/
     2174,
 /**/
index a276d532378b4a4941c331da5fe2d0c133c68d62..ad245b9c89fc6591186eb1c79b7f33043ff7770e 100644 (file)
@@ -2000,7 +2000,7 @@ compile_defer(char_u *arg_start, cctx_T *cctx)
     char_u     *arg = arg_start;
     int                argcount = 0;
     int                defer_var_idx;
-    type_T     *type;
+    type_T     *type = NULL;
     int                func_idx;
 
     // Get a funcref for the function name.