commit | 03afdcf1f449d23c9b6bc56d8b61f31dd4e11836 | [log] [tgz] |
---|---|---|
author | Bram Moolenaar <Bram@vim.org> | Mon Apr 27 23:39:30 2020 +0200 |
committer | Bram Moolenaar <Bram@vim.org> | Mon Apr 27 23:39:30 2020 +0200 |
tree | d3ff3065c2501c7d38744725b56967ee03e05479 | |
parent | 909ed7e902d97054262fb55b28f5e855428ab7fe [diff] [blame] |
patch 8.2.0653: using uninitialized pointer Problem: using uninitialized pointer. Solution: Move assignment up. (John Marriott)
diff --git a/src/userfunc.c b/src/userfunc.c index 86dea79..708b452 100644 --- a/src/userfunc.c +++ b/src/userfunc.c
@@ -1599,9 +1599,9 @@ 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); }