diff options
author | Justin M. Keyes <justinkz@gmail.com> | 2019-01-13 23:09:59 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-01-13 23:09:59 +0100 |
commit | a3d8cd3f69807d70d00eb58d4a654dde8ecda0e3 (patch) | |
tree | bbd5c9b9c1e873099cd8f222707d680fd850721a /src/nvim/path.c | |
parent | 61ec31cde1373033179985f737b55e05cc1a2df7 (diff) | |
parent | 4cba75dab08ce718ff3e7500ca943789c1099c4e (diff) | |
download | rneovim-a3d8cd3f69807d70d00eb58d4a654dde8ecda0e3.tar.gz rneovim-a3d8cd3f69807d70d00eb58d4a654dde8ecda0e3.tar.bz2 rneovim-a3d8cd3f69807d70d00eb58d4a654dde8ecda0e3.zip |
Merge #9471 from justinmk/pvs-warnings
Diffstat (limited to 'src/nvim/path.c')
-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]); |