do not pass NULL to os_getenv

closes #8393
This commit is contained in:
Justin M. Keyes
2018-05-18 09:07:42 +02:00
parent e121b1dbe7
commit 26d5a981eb
5 changed files with 32 additions and 23 deletions

View File

@@ -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;