aboutsummaryrefslogtreecommitdiff
path: root/src/search.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/search.c')
-rw-r--r--src/search.c3
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;