patch 8.2.2004: compiler warning for uninitialized variable
Problem: Compiler warning for uninitialized variable.
Solution: Initialize "ufunc". (John Marriott)
diff --git a/src/version.c b/src/version.c
index a34e9bf..dafd15b 100644
--- a/src/version.c
+++ b/src/version.c
@@ -751,6 +751,8 @@
static int included_patches[] =
{ /* Add new patch number below this line */
/**/
+ 2004,
+/**/
2003,
/**/
2002,
diff --git a/src/vim9compile.c b/src/vim9compile.c
index ebe4854..c8fb95e 100644
--- a/src/vim9compile.c
+++ b/src/vim9compile.c
@@ -2626,7 +2626,7 @@
char_u fname_buf[FLEN_FIXED + 1];
char_u *tofree = NULL;
int error = FCERR_NONE;
- ufunc_T *ufunc;
+ ufunc_T *ufunc = NULL;
int res = FAIL;
int is_autoload;