From 09d21f6f0bc3a02fa2cc245c52b41f300dd50027 Mon Sep 17 00:00:00 2001 From: "Justin M. Keyes" Date: Sun, 13 Jan 2019 16:49:07 +0100 Subject: clang/"null passed to nonnull arg": expand_wildcards --- src/nvim/path.c | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'src') diff --git a/src/nvim/path.c b/src/nvim/path.c index eeb374cf44..de697642c7 100644 --- a/src/nvim/path.c +++ b/src/nvim/path.c @@ -2038,12 +2038,11 @@ int expand_wildcards(int num_pat, char_u **pat, int *num_files, char_u ***files, if (*p_wig) { char_u *ffname; - // check all filess in (*files)[] + // check all files in (*files)[] for (i = 0; i < *num_files; i++) { ffname = (char_u *)FullName_save((char *)(*files)[i], false); - if (ffname == NULL) { // out of memory - break; - } + assert((*files)[i] != NULL); + assert(ffname != NULL); if (match_file_list(p_wig, (*files)[i], ffname)) { // remove this matching file from the list xfree((*files)[i]); -- cgit