mirror of
https://github.com/vim/vim.git
synced 2025-09-24 03:44:06 -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,7 +2898,11 @@ 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);
|
dictitem_T *di = find_var_in_ht(ht, 0, p + 1, no_autoload);
|
||||||
|
|
||||||
if (di != NULL)
|
if (di != NULL)
|
||||||
|
{
|
||||||
|
if (htp != NULL)
|
||||||
|
*htp = ht;
|
||||||
return di;
|
return di;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@@ -750,6 +750,8 @@ static char *(features[]) =
|
|||||||
|
|
||||||
static int included_patches[] =
|
static int included_patches[] =
|
||||||
{ /* Add new patch number below this line */
|
{ /* Add new patch number below this line */
|
||||||
|
/**/
|
||||||
|
4041,
|
||||||
/**/
|
/**/
|
||||||
4040,
|
4040,
|
||||||
/**/
|
/**/
|
||||||
|
Reference in New Issue
Block a user