summaryrefslogtreecommitdiffstats
path: root/src/insexpand.c
diff options
context:
space:
mode:
authorYegappan Lakshmanan <yegappan@yahoo.com>2021-12-07 12:23:57 +0000
committerBram Moolenaar <Bram@vim.org>2021-12-07 12:23:57 +0000
commit4dc24eb5adbcc76838fae1e900936dd230209d96 (patch)
tree79f8deb9ac0294b4cbc228cbde0180ce205964c7 /src/insexpand.c
parent92c33eb2735045d25fceed3b607f44d7156c59c1 (diff)
patch 8.2.3756: might crash when callback is not validv8.2.3756
Problem: might crash when callback is not valid. Solution: Check for valid callback. (Yegappan Lakshmanan, closes #9293)
Diffstat (limited to 'src/insexpand.c')
-rw-r--r--src/insexpand.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/src/insexpand.c b/src/insexpand.c
index 92f0731eb5..8c09841f00 100644
--- a/src/insexpand.c
+++ b/src/insexpand.c
@@ -2329,14 +2329,12 @@ set_thesaurusfunc_option(void)
if (*curbuf->b_p_tsrfu != NUL)
{
// buffer-local option set
- free_callback(&curbuf->b_tsrfu_cb);
retval = option_set_callback_func(curbuf->b_p_tsrfu,
&curbuf->b_tsrfu_cb);
}
else
{
// global option set
- free_callback(&tsrfu_cb);
retval = option_set_callback_func(p_tsrfu, &tsrfu_cb);
}