changeset 33968:180f49745076 v9.0.2175

patch 9.0.2175: Compiler warning for uninitialized var Commit: https://github.com/vim/vim/commit/38ce1a7ac8da8ac0a8b58a1087f56e62e6fdfaa4 Author: Yegappan Lakshmanan <yegappan@yahoo.com> Date: Mon Dec 18 08:58:29 2023 +0100 patch 9.0.2175: Compiler warning for uninitialized var 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>
author Christian Brabandt <cb@256bit.org>
date Mon, 18 Dec 2023 09:15:03 +0100
parents a3523db958eb
children a6dcfeddf60a
files src/version.c src/vim9cmds.c
diffstat 2 files changed, 3 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/version.c
+++ b/src/version.c
@@ -705,6 +705,8 @@ static char *(features[]) =
 static int included_patches[] =
 {   /* Add new patch number below this line */
 /**/
+    2175,
+/**/
     2174,
 /**/
     2173,
--- a/src/vim9cmds.c
+++ b/src/vim9cmds.c
@@ -2000,7 +2000,7 @@ compile_defer(char_u *arg_start, cctx_T 
     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.