aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/path.c
diff options
context:
space:
mode:
authorJustin M. Keyes <justinkz@gmail.com>2019-01-13 23:09:59 +0100
committerGitHub <noreply@github.com>2019-01-13 23:09:59 +0100
commita3d8cd3f69807d70d00eb58d4a654dde8ecda0e3 (patch)
treebbd5c9b9c1e873099cd8f222707d680fd850721a /src/nvim/path.c
parent61ec31cde1373033179985f737b55e05cc1a2df7 (diff)
parent4cba75dab08ce718ff3e7500ca943789c1099c4e (diff)
downloadrneovim-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.c7
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]);