mirror of
https://github.com/vim/vim.git
synced 2025-09-24 03:44:06 -04:00
patch 8.2.4023: using uninitialized variable
Problem: Using uninitialized variable. Solution: Initialize "ufunc" also when an item is not exported.
This commit is contained in:
@@ -750,6 +750,8 @@ static char *(features[]) =
|
||||
|
||||
static int included_patches[] =
|
||||
{ /* Add new patch number below this line */
|
||||
/**/
|
||||
4023,
|
||||
/**/
|
||||
4022,
|
||||
/**/
|
||||
|
@@ -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
|
||||
{
|
||||
|
Reference in New Issue
Block a user