eina vpath - fix trailing extra / after home

fixes T8965

@fix
This commit is contained in:
Carsten Haitzler 2021-11-07 09:26:03 +00:00
parent 992fb22ac4
commit 173c9cdbe1
1 changed files with 5 additions and 0 deletions

View File

@ -19,6 +19,11 @@ eina_xdg_env_init(void)
Eina_Vpath_Interface_User user;
eina_vpath_resolve_snprintf(home, sizeof(home), "(:home:)/");
// last char is / - we won't want it
for (s = home; *s; s++)
{
if (s[1] == 0) s[0] = 0;
}
memset(&user, 0, sizeof(Eina_Vpath_Interface_User));
#define FATAL_SNPRINTF(_buf, _err, _fmt, ...) \