diff options
author | Justin M. Keyes <justinkz@gmail.com> | 2018-05-18 09:07:42 +0200 |
---|---|---|
committer | Justin M. Keyes <justinkz@gmail.com> | 2018-05-18 19:04:37 +0200 |
commit | 26d5a981eb444acf9469853d6c4988140d20cb83 (patch) | |
tree | 617df8b0201bce295f954a0347a993c123a5bb41 /src/nvim/eval.c | |
parent | e121b1dbe78cdf7ad46f493ca3a1cb83c190f719 (diff) | |
download | rneovim-26d5a981eb444acf9469853d6c4988140d20cb83.tar.gz rneovim-26d5a981eb444acf9469853d6c4988140d20cb83.tar.bz2 rneovim-26d5a981eb444acf9469853d6c4988140d20cb83.zip |
do not pass NULL to os_getenv
closes #8393
Diffstat (limited to 'src/nvim/eval.c')
-rw-r--r-- | src/nvim/eval.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/nvim/eval.c b/src/nvim/eval.c index a3540b3153..de40bea0dd 100644 --- a/src/nvim/eval.c +++ b/src/nvim/eval.c @@ -15712,6 +15712,9 @@ static void get_xdg_var_list(const XDGVarType xdg, typval_T *rettv) rettv->vval.v_list = list; tv_list_ref(list); char *const dirs = stdpaths_get_xdg_var(xdg); + if (dirs == NULL) { + return; + } do { size_t dir_len; const char *dir; |