diff options
author | John Schmidt <john.schmidt.h@gmail.com> | 2014-04-22 11:35:11 +0200 |
---|---|---|
committer | Thiago de Arruda <tpadilha84@gmail.com> | 2014-04-28 07:41:45 -0300 |
commit | 4e1b364a3e255742522d4d76c5ccddd7a36c1769 (patch) | |
tree | 667a250396bc009ec56f3dad563882b9367b4441 /src/ex_cmds.c | |
parent | c70a526a5df2b8a7353c3c71e241cd51bf099a64 (diff) | |
download | rneovim-4e1b364a3e255742522d4d76c5ccddd7a36c1769.tar.gz rneovim-4e1b364a3e255742522d4d76c5ccddd7a36c1769.tar.bz2 rneovim-4e1b364a3e255742522d4d76c5ccddd7a36c1769.zip |
Remove `alloc_clear`
Use `xcalloc` instead.
Inline `alloc_tv` and `alloc_string_tv` in eval.c
Diffstat (limited to 'src/ex_cmds.c')
-rw-r--r-- | src/ex_cmds.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/ex_cmds.c b/src/ex_cmds.c index 791ddd04aa..b4cbd87d8f 100644 --- a/src/ex_cmds.c +++ b/src/ex_cmds.c @@ -5829,9 +5829,7 @@ void ex_sign(exarg_T *eap) int start = next_sign_typenr; /* Allocate a new sign. */ - sp = (sign_T *)alloc_clear((unsigned)sizeof(sign_T)); - if (sp == NULL) - return; + sp = xcalloc(1, sizeof(sign_T)); /* Check that next_sign_typenr is not already being used. * This only happens after wrapping around. Hopefully |