From 59c8880adef567addc8e91b37ee6b91fc7d7638d Mon Sep 17 00:00:00 2001 From: Yegappan Lakshmanan Date: Thu, 19 Dec 2024 20:00:31 +0100 Subject: [PATCH] patch 9.1.0947: short-description Problem: Coverity comlains about un-initialized var (after v9.1.0943) Solution: initialize variable (Yegappan Lakshmanan) closes: #16256 Signed-off-by: Yegappan Lakshmanan Signed-off-by: Christian Brabandt --- src/version.c | 4 ++++ src/vim9compile.c | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/src/version.c b/src/version.c index f18772d181..f026617534 100644 --- a/src/version.c +++ b/src/version.c @@ -704,6 +704,10 @@ static char *(features[]) = static int included_patches[] = { /* Add new patch number below this line */ +/**/ + 947, +/**/ + 946, /**/ 945, /**/ diff --git a/src/vim9compile.c b/src/vim9compile.c index 3666bb35cc..eb9ddafbba 100644 --- a/src/vim9compile.c +++ b/src/vim9compile.c @@ -2281,7 +2281,7 @@ compile_lhs( int oplen, cctx_T *cctx) { - char_u *var_end; + char_u *var_end = NULL; int is_decl = is_decl_command(cmdidx); if (lhs_init(lhs, var_start, is_decl, heredoc, &var_end) == FAIL) -- 2.47.2