forked from aniani/vim
patch 8.2.0653: using uninitialized pointer
Problem: using uninitialized pointer. Solution: Move assignment up. (John Marriott)
This commit is contained in:
@@ -1599,9 +1599,9 @@ delete_script_functions(int sid)
|
||||
for (hi = func_hashtab.ht_array; todo > 0; ++hi)
|
||||
if (!HASHITEM_EMPTY(hi))
|
||||
{
|
||||
fp = HI2UF(hi);
|
||||
if (STRNCMP(fp->uf_name, buf, len) == 0)
|
||||
{
|
||||
fp = HI2UF(hi);
|
||||
fp->uf_flags |= FC_DEAD;
|
||||
func_clear(fp, TRUE);
|
||||
}
|
||||
|
Reference in New Issue
Block a user