mirror of
https://github.com/neovim/neovim.git
synced 2025-09-14 23:38:17 +00:00
clang/"null passed to nonnull arg": expand_wildcards
This commit is contained in:
@@ -2038,12 +2038,11 @@ int expand_wildcards(int num_pat, char_u **pat, int *num_files, char_u ***files,
|
|||||||
if (*p_wig) {
|
if (*p_wig) {
|
||||||
char_u *ffname;
|
char_u *ffname;
|
||||||
|
|
||||||
// check all filess in (*files)[]
|
// check all files in (*files)[]
|
||||||
for (i = 0; i < *num_files; i++) {
|
for (i = 0; i < *num_files; i++) {
|
||||||
ffname = (char_u *)FullName_save((char *)(*files)[i], false);
|
ffname = (char_u *)FullName_save((char *)(*files)[i], false);
|
||||||
if (ffname == NULL) { // out of memory
|
assert((*files)[i] != NULL);
|
||||||
break;
|
assert(ffname != NULL);
|
||||||
}
|
|
||||||
if (match_file_list(p_wig, (*files)[i], ffname)) {
|
if (match_file_list(p_wig, (*files)[i], ffname)) {
|
||||||
// remove this matching file from the list
|
// remove this matching file from the list
|
||||||
xfree((*files)[i]);
|
xfree((*files)[i]);
|
||||||
|
Reference in New Issue
Block a user