From 0fd797eacd569a0680a86452c18713eacf6608fe Mon Sep 17 00:00:00 2001 From: Bram Moolenaar Date: Thu, 5 Nov 2020 20:46:32 +0100 Subject: [PATCH] patch 8.2.1960: warning for uninitialized variable Problem: Warning for uninitialized variable. Solution: Initialize the variable. --- src/evalfunc.c | 2 +- src/version.c | 4 ++++ 2 files changed, 5 insertions(+), 1 deletion(-) 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, /**/ -- 2.40.0