mirror of
https://github.com/neovim/neovim.git
synced 2025-10-03 08:28:34 +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
@@ -3586,9 +3586,7 @@ static reg_extmatch_T *make_extmatch(void);
|
||||
*/
|
||||
static reg_extmatch_T *make_extmatch(void)
|
||||
{
|
||||
reg_extmatch_T *em;
|
||||
|
||||
em = (reg_extmatch_T *)alloc_clear((unsigned)sizeof(reg_extmatch_T));
|
||||
reg_extmatch_T *em = xcalloc(1, sizeof(reg_extmatch_T));
|
||||
em->refcnt = 1;
|
||||
return em;
|
||||
}
|
||||
|
Reference in New Issue
Block a user