forked from enlightenment/efl
eina vpath - fix trailing extra / after home
fixes T8965 @fix
This commit is contained in:
parent
992fb22ac4
commit
173c9cdbe1
|
@ -19,6 +19,11 @@ eina_xdg_env_init(void)
|
||||||
Eina_Vpath_Interface_User user;
|
Eina_Vpath_Interface_User user;
|
||||||
|
|
||||||
eina_vpath_resolve_snprintf(home, sizeof(home), "(:home:)/");
|
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));
|
memset(&user, 0, sizeof(Eina_Vpath_Interface_User));
|
||||||
|
|
||||||
#define FATAL_SNPRINTF(_buf, _err, _fmt, ...) \
|
#define FATAL_SNPRINTF(_buf, _err, _fmt, ...) \
|
||||||
|
|
Loading…
Reference in New Issue