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>
diff --git a/src/vim9cmds.c b/src/vim9cmds.c
index a276d53..ad245b9 100644
--- a/src/vim9cmds.c
+++ b/src/vim9cmds.c
@@ -2000,7 +2000,7 @@
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.