From 960dcbd098c761dd623bec9492d5391ff6e8dceb Mon Sep 17 00:00:00 2001 From: Yegappan Lakshmanan Date: Tue, 7 Mar 2023 17:45:11 +0000 Subject: patch 9.0.1391: "clear" macros are not always used Problem: "clear" macros are not always used. Solution: Use ALLOC_ONE, VIM_CLEAR, CLEAR_POINTER and CLEAR_FIELD in more places. (Yegappan Lakshmanan, closes #12104) --- src/mbyte.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'src/mbyte.c') diff --git a/src/mbyte.c b/src/mbyte.c index 5e6aed02b..a9603cbf2 100644 --- a/src/mbyte.c +++ b/src/mbyte.c @@ -5634,8 +5634,7 @@ f_setcellwidths(typval_T *argvars, typval_T *rettv UNUSED) if (l->lv_len == 0) { // Clearing the table. - vim_free(cw_table); - cw_table = NULL; + VIM_CLEAR(cw_table); cw_table_size = 0; return; } -- cgit v1.2.1