mirror of
https://github.com/neovim/neovim.git
synced 2025-09-28 22:18:33 +00:00
Remove alloc_clear
Use `xcalloc` instead. Inline `alloc_tv` and `alloc_string_tv` in eval.c
This commit is contained in:

committed by
Thiago de Arruda

parent
c70a526a5d
commit
4e1b364a3e
@@ -373,7 +373,7 @@ add_menu_path (
|
||||
}
|
||||
|
||||
/* Not already there, so lets add it */
|
||||
menu = (vimmenu_T *)alloc_clear((unsigned)sizeof(vimmenu_T));
|
||||
menu = xcalloc(1, sizeof(vimmenu_T));
|
||||
|
||||
menu->modes = modes;
|
||||
menu->enabled = MENU_ALL_MODES;
|
||||
|
Reference in New Issue
Block a user