1
0
forked from aniani/vim

patch 8.2.1960: warning for uninitialized variable

Problem:    Warning for uninitialized variable.
Solution:   Initialize the variable.
This commit is contained in:
Bram Moolenaar 2020-11-05 20:46:32 +01:00
parent 3132cddd20
commit 0fd797eacd
2 changed files with 5 additions and 1 deletions

View File

@ -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)
{

View File

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