]> granicus.if.org Git - vim/commitdiff
patch 8.2.2004: compiler warning for uninitialized variable v8.2.2004
authorBram Moolenaar <Bram@vim.org>
Tue, 17 Nov 2020 18:56:09 +0000 (19:56 +0100)
committerBram Moolenaar <Bram@vim.org>
Tue, 17 Nov 2020 18:56:09 +0000 (19:56 +0100)
Problem:    Compiler warning for uninitialized variable.
Solution:   Initialize "ufunc". (John Marriott)

src/version.c
src/vim9compile.c

index a34e9bfa819622974bc20ef325f89176a89c1cd3..dafd15bf9488d31b475bd72debff75430fccb8be 100644 (file)
@@ -750,6 +750,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    2004,
 /**/
     2003,
 /**/
index ebe48548e2a9c2358504d53ceb1aeb97d89b52c6..c8fb95ec414c718feb0bf631c4f14dd6af4d7529 100644 (file)
@@ -2626,7 +2626,7 @@ compile_call(
     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;