1
0
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:
Bram Moolenaar
2020-04-27 23:39:30 +02:00
parent 909ed7e902
commit 03afdcf1f4
3 changed files with 19 additions and 19 deletions

View File

@@ -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);
}