summaryrefslogtreecommitdiff
path: root/src/sign.c
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2022-11-25 16:31:51 +0000
committerBram Moolenaar <Bram@vim.org>2022-11-25 16:31:51 +0000
commitef2c325f5e3c437b722bb96bf369ba2a5c541163 (patch)
treedc85f0dc98dce1937b459d8d3882473f25db03c3 /src/sign.c
parentc1cf4c91072f91b6b8dd636627a4ddf6f4b21f16 (diff)
downloadvim-git-ef2c325f5e3c437b722bb96bf369ba2a5c541163.tar.gz
patch 9.0.0949: crash when unletting a variable while listing variablesv9.0.0949
Problem: Crash when unletting a variable while listing variables. Solution: Disallow changing a hashtable while going over the entries. (closes #11435)
Diffstat (limited to 'src/sign.c')
-rw-r--r--src/sign.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/sign.c b/src/sign.c
index 1073e6529..2a360216f 100644
--- a/src/sign.c
+++ b/src/sign.c
@@ -126,7 +126,7 @@ sign_group_unref(char_u *groupname)
if (group->sg_refcount == 0)
{
// All the signs in this group are removed
- hash_remove(&sg_table, hi);
+ hash_remove(&sg_table, hi, "sign remove");
vim_free(group);
}
}