From: Bram Moolenaar Date: Thu, 5 Nov 2020 19:46:32 +0000 (+0100) Subject: patch 8.2.1960: warning for uninitialized variable X-Git-Tag: v8.2.1960 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=0fd797eacd569a0680a86452c18713eacf6608fe;p=vim patch 8.2.1960: warning for uninitialized variable Problem: Warning for uninitialized variable. Solution: Initialize the variable. --- diff --git a/src/evalfunc.c b/src/evalfunc.c index 74985c2db..5cc9ad755 100644 --- a/src/evalfunc.c +++ b/src/evalfunc.c @@ -6873,7 +6873,7 @@ f_rand(typval_T *argvars, typval_T *rettv) static UINT32_T gx, gy, gz, gw; static int initialized = FALSE; listitem_T *lx, *ly, *lz, *lw; - UINT32_T x, y, z, w, t, result; + UINT32_T x = 0, y, z, w, t, result; if (argvars[0].v_type == VAR_UNKNOWN) { diff --git a/src/version.c b/src/version.c index f5d94cc72..067377ee3 100644 --- a/src/version.c +++ b/src/version.c @@ -750,6 +750,10 @@ static char *(features[]) = static int included_patches[] = { /* Add new patch number below this line */ +/**/ + 1960, +/**/ + 1959, /**/ 1959, /**/