aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/eval.c
diff options
context:
space:
mode:
authorzeertzjq <zeertzjq@outlook.com>2023-04-19 12:06:45 +0800
committerGitHub <noreply@github.com>2023-04-19 12:06:45 +0800
commitc218109744e5aec702b10d4a8bf233b758dacc79 (patch)
tree91b3cff369f70f248bb06a15b6d32db77006391b /src/nvim/eval.c
parentdd8781128f4b93d402bab281d11b85f2c45b987e (diff)
parent1c12f844ad6db504e1435b5e4b633eb87b932180 (diff)
downloadrneovim-c218109744e5aec702b10d4a8bf233b758dacc79.tar.gz
rneovim-c218109744e5aec702b10d4a8bf233b758dacc79.tar.bz2
rneovim-c218109744e5aec702b10d4a8bf233b758dacc79.zip
Merge pull request #23191 from zeertzjq/vim-9.0.1007
vim-patch:9.0.{0369,0372,0426,0514,0545,0560,0561,1005,1007,1008,1009,1010,1012,1020,1021,1034}
Diffstat (limited to 'src/nvim/eval.c')
-rw-r--r--src/nvim/eval.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/nvim/eval.c b/src/nvim/eval.c
index 28ac1f3fbd..35738cdfa9 100644
--- a/src/nvim/eval.c
+++ b/src/nvim/eval.c
@@ -5712,8 +5712,7 @@ void get_xdg_var_list(const XDGVarType xdg, typval_T *rettv)
if (dir != NULL && dir_len > 0) {
char *dir_with_nvim = xmemdupz(dir, dir_len);
dir_with_nvim = concat_fnames_realloc(dir_with_nvim, appname, true);
- tv_list_append_string(list, dir_with_nvim, (ssize_t)strlen(dir_with_nvim));
- xfree(dir_with_nvim);
+ tv_list_append_allocated_string(list, dir_with_nvim);
}
} while (iter != NULL);
xfree(dirs);