Skip to content

Commit b3a0194

Browse files
committed
patch 8.2.2004: compiler warning for uninitialized variable
Problem: Compiler warning for uninitialized variable. Solution: Initialize "ufunc". (John Marriott)
1 parent 1efefda commit b3a0194

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+
2004,
753755
/**/
754756
2003,
755757
/**/

src/vim9compile.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2626,7 +2626,7 @@ compile_call(
26262626
char_u fname_buf[FLEN_FIXED + 1];
26272627
char_u *tofree = NULL;
26282628
int error = FCERR_NONE;
2629-
ufunc_T *ufunc;
2629+
ufunc_T *ufunc = NULL;
26302630
int res = FAIL;
26312631
int is_autoload;
26322632

0 commit comments

Comments
 (0)