diff options
author | Yegappan Lakshmanan <yegappan@yahoo.com> | 2023-12-18 08:58:29 +0100 |
---|---|---|
committer | Christian Brabandt <cb@256bit.org> | 2023-12-18 08:58:29 +0100 |
commit | 38ce1a7ac8da8ac0a8b58a1087f56e62e6fdfaa4 (patch) | |
tree | 4df33f02687b40fdf9165e592d31d524fd496070 /src | |
parent | 71cbe8e17a8c0c29b91943a7e9da596d718c79cf (diff) |
patch 9.0.2175: Compiler warning for uninitialized varv9.0.2175
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>
Diffstat (limited to 'src')
-rw-r--r-- | src/version.c | 2 | ||||
-rw-r--r-- | src/vim9cmds.c | 2 |
2 files changed, 3 insertions, 1 deletions
diff --git a/src/version.c b/src/version.c index 50660311da..78fb3e01f6 100644 --- 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, diff --git a/src/vim9cmds.c b/src/vim9cmds.c index a276d53237..ad245b9c89 100644 --- a/src/vim9cmds.c +++ b/src/vim9cmds.c @@ -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. |