mirror of
https://github.com/vim/vim.git
synced 2025-09-23 03:43:49 -04:00
patch 8.2.4041: using unitialized pointer
Problem: Using unitialized pointer. Solution: Store "ht" when variable is in another script.
This commit is contained in:
@@ -2898,10 +2898,14 @@ find_var_also_in_script(char_u *name, hashtab_T **htp, int no_autoload)
|
||||
dictitem_T *di = find_var_in_ht(ht, 0, p + 1, no_autoload);
|
||||
|
||||
if (di != NULL)
|
||||
{
|
||||
if (htp != NULL)
|
||||
*htp = ht;
|
||||
return di;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
return find_var(name, htp, no_autoload);
|
||||
}
|
||||
|
@@ -750,6 +750,8 @@ static char *(features[]) =
|
||||
|
||||
static int included_patches[] =
|
||||
{ /* Add new patch number below this line */
|
||||
/**/
|
||||
4041,
|
||||
/**/
|
||||
4040,
|
||||
/**/
|
||||
|
Reference in New Issue
Block a user