refactor: fix PVS warnings (#23200)

This commit is contained in:
zeertzjq
2023-04-19 22:49:14 +08:00
committed by GitHub
parent 0ad5237162
commit ea52961c54
3 changed files with 3 additions and 6 deletions

View File

@@ -1366,9 +1366,7 @@ int recover_names(char *fname, bool do_list, list_T *ret_list, int nr, char **fn
} else if (ret_list != NULL) {
for (int i = 0; i < num_files; i++) {
char *name = concat_fnames(dir_name, files[i], true);
if (name != NULL) {
tv_list_append_allocated_string(ret_list, name);
}
tv_list_append_allocated_string(ret_list, name);
}
} else {
file_count += num_files;