mirror of
https://github.com/neovim/neovim.git
synced 2025-10-18 15:51:50 +00:00
vim-patch:9.0.1391: "clear" macros are not always used (#32312)
Problem: "clear" macros are not always used.
Solution: Use ALLOC_ONE, VIM_CLEAR, CLEAR_POINTER and CLEAR_FIELD in more
places. (Yegappan Lakshmanan, closes vim/vim#12104)
960dcbd098
Co-authored-by: Yegappan Lakshmanan <yegappan@yahoo.com>
This commit is contained in:
@@ -110,13 +110,11 @@ void do_debug(char *cmd)
|
||||
}
|
||||
if (debug_oldval != NULL) {
|
||||
smsg(0, _("Oldval = \"%s\""), debug_oldval);
|
||||
xfree(debug_oldval);
|
||||
debug_oldval = NULL;
|
||||
XFREE_CLEAR(debug_oldval);
|
||||
}
|
||||
if (debug_newval != NULL) {
|
||||
smsg(0, _("Newval = \"%s\""), debug_newval);
|
||||
xfree(debug_newval);
|
||||
debug_newval = NULL;
|
||||
XFREE_CLEAR(debug_newval);
|
||||
}
|
||||
char *sname = estack_sfile(ESTACK_NONE);
|
||||
if (sname != NULL) {
|
||||
|
Reference in New Issue
Block a user