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/quickfix.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/quickfix.c')
-rw-r--r-- | src/quickfix.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/quickfix.c b/src/quickfix.c index 75c80ed2b0..090fceb975 100644 --- a/src/quickfix.c +++ b/src/quickfix.c @@ -326,7 +326,7 @@ qf_init_ext ( /* * Allocate a new eformat structure and put it at the end of the list */ - fmt_ptr = (efm_T *)alloc_clear((unsigned)sizeof(efm_T)); + fmt_ptr = xcalloc(1, sizeof(efm_T)); if (fmt_first == NULL) /* first one */ fmt_first = fmt_ptr; else |