# HG changeset patch # User Bram Moolenaar # Date 1641507304 -3600 # Node ID bef1f016725103281796a076a561b5d452e59e7b # Parent 30b34e3440c9e3bab928f3bdd72c4a7c080b794e patch 8.2.4023: using uninitialized variable Commit: https://github.com/vim/vim/commit/a909c48bec1f7ae13a9143b5d627c40cac5b240e Author: Bram Moolenaar Date: Thu Jan 6 22:07:57 2022 +0000 patch 8.2.4023: using uninitialized variable Problem: Using uninitialized variable. Solution: Initialize "ufunc" also when an item is not exported. diff --git a/src/version.c b/src/version.c --- a/src/version.c +++ b/src/version.c @@ -751,6 +751,8 @@ static char *(features[]) = static int included_patches[] = { /* Add new patch number below this line */ /**/ + 4023, +/**/ 4022, /**/ 4021, diff --git a/src/vim9script.c b/src/vim9script.c --- a/src/vim9script.c +++ b/src/vim9script.c @@ -565,6 +565,7 @@ find_exported( if (idx >= 0) { sv = ((svar_T *)script->sn_var_vals.ga_data) + idx; + *ufunc = NULL; if (!sv->sv_export) { if (verbose) @@ -572,7 +573,6 @@ find_exported( return -1; } *type = sv->sv_type; - *ufunc = NULL; } else {