From: Yegappan Lakshmanan Date: Thu, 19 Dec 2024 19:00:31 +0000 (+0100) Subject: patch 9.1.0947: short-description X-Git-Tag: v9.1.0947^0 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=59c8880adef567addc8e91b37ee6b91fc7d7638d;p=thirdparty%2Fvim.git 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 --- 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)