# HG changeset patch # User Bram Moolenaar # Date 1604606404 -3600 # Node ID 3996539f38b402e0381100afb92e9200c6e4b136 # Parent 8dad79c661d1c18ff60113564e4e7c47b993d20d patch 8.2.1960: warning for uninitialized variable Commit: https://github.com/vim/vim/commit/0fd797eacd569a0680a86452c18713eacf6608fe Author: Bram Moolenaar Date: Thu Nov 5 20:46:32 2020 +0100 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 --- a/src/evalfunc.c +++ b/src/evalfunc.c @@ -6873,7 +6873,7 @@ f_rand(typval_T *argvars, typval_T *rett 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 --- a/src/version.c +++ b/src/version.c @@ -751,6 +751,10 @@ static char *(features[]) = static int included_patches[] = { /* Add new patch number below this line */ /**/ + 1960, +/**/ + 1959, +/**/ 1959, /**/ 1958,