patch 8.2.3000: Vim9: warning for uninitialized variable
Problem: Vim9: warning for uninitialized variable.
Solution: Add initialization. (John Marriott)
diff --git a/src/version.c b/src/version.c
index 650382e..3e33c5d 100644
--- a/src/version.c
+++ b/src/version.c
@@ -751,6 +751,8 @@
static int included_patches[] =
{ /* Add new patch number below this line */
/**/
+ 3000,
+/**/
2999,
/**/
2998,
diff --git a/src/vim9compile.c b/src/vim9compile.c
index dbad31b..57e2311 100644
--- a/src/vim9compile.c
+++ b/src/vim9compile.c
@@ -9051,7 +9051,7 @@
{
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)
{