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/path.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/path.c')
-rw-r--r-- | src/path.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/path.c b/src/path.c index 4914c681da..77348fecff 100644 --- a/src/path.c +++ b/src/path.c @@ -754,7 +754,7 @@ static void uniquefy_paths(garray_T *gap, char_u *pattern) os_dirname(curdir, MAXPATHL); expand_path_option(curdir, &path_ga); - in_curdir = (char_u **)alloc_clear(gap->ga_len * sizeof(char_u *)); + in_curdir = xcalloc(gap->ga_len, sizeof(char_u *)); for (i = 0; i < gap->ga_len && !got_int; i++) { char_u *path = fnames[i]; |