mirror of
https://github.com/vim/vim.git
synced 2025-10-28 09:27:14 -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
@@ -3568,8 +3568,7 @@ popup_update_mask(win_T *wp, int width, int height)
|
||||
|
||||
if (wp->w_popup_mask == NULL || width == 0 || height == 0)
|
||||
{
|
||||
vim_free(wp->w_popup_mask_cells);
|
||||
wp->w_popup_mask_cells = NULL;
|
||||
VIM_CLEAR(wp->w_popup_mask_cells);
|
||||
return;
|
||||
}
|
||||
if (wp->w_popup_mask_cells != NULL
|
||||
|
||||
Reference in New Issue
Block a user