mirror of
https://github.com/neovim/neovim.git
synced 2025-10-07 18:36:30 +00:00
refactor(eval): use tv_list_append_allocated_string()
This commit is contained in:
@@ -1367,8 +1367,7 @@ int recover_names(char *fname, bool do_list, list_T *ret_list, int nr, char **fn
|
||||
for (int i = 0; i < num_files; i++) {
|
||||
char *name = concat_fnames(dir_name, files[i], true);
|
||||
if (name != NULL) {
|
||||
tv_list_append_string(ret_list, name, -1);
|
||||
xfree(name);
|
||||
tv_list_append_allocated_string(ret_list, name);
|
||||
}
|
||||
}
|
||||
} else {
|
||||
|
Reference in New Issue
Block a user