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,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);
|
||||
|
||||
if (di != NULL)
|
||||
{
|
||||
if (htp != NULL)
|
||||
*htp = ht;
|
||||
return di;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user