diff options
author | John Schmidt <john.schmidt.h@gmail.com> | 2014-04-18 01:52:48 +0200 |
---|---|---|
committer | Thiago de Arruda <tpadilha84@gmail.com> | 2014-04-19 09:36:17 -0300 |
commit | 63cc8b6934e74da2fd13aa5d9f2254c257a45b1c (patch) | |
tree | 0af45b07e1d92d19529b69172431606def237102 /src/search.c | |
parent | 204d3dfafcc5b285d112e023dd5e5b6f1e861146 (diff) | |
download | rneovim-63cc8b6934e74da2fd13aa5d9f2254c257a45b1c.tar.gz rneovim-63cc8b6934e74da2fd13aa5d9f2254c257a45b1c.tar.bz2 rneovim-63cc8b6934e74da2fd13aa5d9f2254c257a45b1c.zip |
Remove `lalloc_clear`
Use `xcalloc` instead. Change some local variables
to avoid casting.
Diffstat (limited to 'src/search.c')
-rw-r--r-- | src/search.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/search.c b/src/search.c index 37f7f27eeb..f3eec5227d 100644 --- a/src/search.c +++ b/src/search.c @@ -4057,8 +4057,7 @@ find_pattern_in_path ( goto fpip_end; def_regmatch.rm_ic = FALSE; /* don't ignore case in define pat. */ } - files = (SearchedFile *)lalloc_clear((long_u) - (max_path_depth * sizeof(SearchedFile)), TRUE); + files = xcalloc(max_path_depth, sizeof(SearchedFile)); if (files == NULL) goto fpip_end; old_files = max_path_depth; |