Skip to content

Commit 3b814af

Browse files
committed
patch 8.2.3000: Vim9: warning for uninitialized variable
Problem: Vim9: warning for uninitialized variable. Solution: Add initialization. (John Marriott)
1 parent 47f6db9 commit 3b814af

2 files changed

Lines changed: 3 additions & 1 deletion

File tree

src/version.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -750,6 +750,8 @@ static char *(features[]) =
750750

751751
static int included_patches[] =
752752
{ /* Add new patch number below this line */
753+
/**/
754+
3000,
753755
/**/
754756
2999,
755757
/**/

src/vim9compile.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9051,7 +9051,7 @@ compile_def_function(
90519051
{
90529052
dfunc_T *dfunc = ((dfunc_T *)def_functions.ga_data)
90539053
+ ufunc->uf_dfunc_idx;
9054-
isn_T *instr_dest;
9054+
isn_T *instr_dest = NULL;
90559055

90569056
switch (compile_type)
90579057
{

0 commit comments

Comments
 (0)