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:
parent
3132cddd20
commit
0fd797eacd
@ -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)
|
||||
{
|
||||
|
@ -750,6 +750,10 @@ static char *(features[]) =
|
||||
|
||||
static int included_patches[] =
|
||||
{ /* Add new patch number below this line */
|
||||
/**/
|
||||
1960,
|
||||
/**/
|
||||
1959,
|
||||
/**/
|
||||
1959,
|
||||
/**/
|
||||
|
Loading…
x
Reference in New Issue
Block a user