mirror of
https://github.com/vim/vim.git
synced 2025-09-24 03:44:06 -04:00
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)
This commit is contained in:
committed by
Bram Moolenaar
parent
14113fdf9c
commit
960dcbd098
@@ -6287,7 +6287,7 @@ ex_ownsyntax(exarg_T *eap)
|
||||
if (curwin->w_s == &curwin->w_buffer->b_s)
|
||||
{
|
||||
curwin->w_s = ALLOC_ONE(synblock_T);
|
||||
memset(curwin->w_s, 0, sizeof(synblock_T));
|
||||
CLEAR_POINTER(curwin->w_s);
|
||||
hash_init(&curwin->w_s->b_keywtab);
|
||||
hash_init(&curwin->w_s->b_keywtab_ic);
|
||||
#ifdef FEAT_SPELL
|
||||
|
Reference in New Issue
Block a user