diff options
author | Justin M. Keyes <justinkz@gmail.com> | 2019-01-13 16:49:07 +0100 |
---|---|---|
committer | Justin M. Keyes <justinkz@gmail.com> | 2019-01-13 16:54:18 +0100 |
commit | 09d21f6f0bc3a02fa2cc245c52b41f300dd50027 (patch) | |
tree | 440ec078d6a5813cbf4bc810c081d43f237100c1 | |
parent | 651e82af9fbd731c0215314a6e4861c9a38f0d48 (diff) | |
download | rneovim-09d21f6f0bc3a02fa2cc245c52b41f300dd50027.tar.gz rneovim-09d21f6f0bc3a02fa2cc245c52b41f300dd50027.tar.bz2 rneovim-09d21f6f0bc3a02fa2cc245c52b41f300dd50027.zip |
clang/"null passed to nonnull arg": expand_wildcards
-rw-r--r-- | src/nvim/path.c | 7 |
1 files changed, 3 insertions, 4 deletions
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]); |