changeset 24926:e20d34db7cf4 v8.2.3000

patch 8.2.3000: Vim9: warning for uninitialized variable Commit: https://github.com/vim/vim/commit/3b814af7e1e7ca18fe1c8c671b18e5e8c1f9e94c Author: Bram Moolenaar <Bram@vim.org> Date: Tue Jun 15 10:22:17 2021 +0200 patch 8.2.3000: Vim9: warning for uninitialized variable Problem: Vim9: warning for uninitialized variable. Solution: Add initialization. (John Marriott)
author Bram Moolenaar <Bram@vim.org>
date Tue, 15 Jun 2021 10:30:03 +0200
parents bba7260bd00b
children 101755874b79
files src/version.c src/vim9compile.c
diffstat 2 files changed, 3 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/version.c
+++ b/src/version.c
@@ -751,6 +751,8 @@ static char *(features[]) =
 static int included_patches[] =
 {   /* Add new patch number below this line */
 /**/
+    3000,
+/**/
     2999,
 /**/
     2998,
--- a/src/vim9compile.c
+++ b/src/vim9compile.c
@@ -9051,7 +9051,7 @@ compile_def_function(
     {
 	dfunc_T *dfunc = ((dfunc_T *)def_functions.ga_data)
 							 + ufunc->uf_dfunc_idx;
-	isn_T	*instr_dest;
+	isn_T	*instr_dest = NULL;
 
 	switch (compile_type)
 	{