0
0
mirror of https://github.com/vim/vim.git synced 2025-07-26 11:04:33 -04:00

patch 8.2.2004: compiler warning for uninitialized variable

Problem:    Compiler warning for uninitialized variable.
Solution:   Initialize "ufunc". (John Marriott)
This commit is contained in:
Bram Moolenaar 2020-11-17 19:56:09 +01:00
parent 1efefda623
commit b3a01946b3
2 changed files with 3 additions and 1 deletions

View File

@ -750,6 +750,8 @@ static char *(features[]) =
static int included_patches[] = static int included_patches[] =
{ /* Add new patch number below this line */ { /* Add new patch number below this line */
/**/
2004,
/**/ /**/
2003, 2003,
/**/ /**/

View File

@ -2626,7 +2626,7 @@ compile_call(
char_u fname_buf[FLEN_FIXED + 1]; char_u fname_buf[FLEN_FIXED + 1];
char_u *tofree = NULL; char_u *tofree = NULL;
int error = FCERR_NONE; int error = FCERR_NONE;
ufunc_T *ufunc; ufunc_T *ufunc = NULL;
int res = FAIL; int res = FAIL;
int is_autoload; int is_autoload;