forked from enlightenment/efl
efreetd cache - use eina home env get to centralize homedir fetching
this cleans up and improves a getenv that should really use eina
This commit is contained in:
parent
6b090a00b6
commit
0ea4d0d821
|
@ -524,7 +524,7 @@ stat_cmp(const void *a, const void *b)
|
||||||
static Eina_Bool
|
static Eina_Bool
|
||||||
_check_recurse_monitor_sanity(Eina_Inarray *stack, const char *path, unsigned int stack_limit)
|
_check_recurse_monitor_sanity(Eina_Inarray *stack, const char *path, unsigned int stack_limit)
|
||||||
{
|
{
|
||||||
const char *home = getenv("HOME");
|
const char *home = eina_environment_home_get();
|
||||||
|
|
||||||
// protect against too deep recursion even if it's valid.
|
// protect against too deep recursion even if it's valid.
|
||||||
if (eina_inarray_count(stack) >= stack_limit)
|
if (eina_inarray_count(stack) >= stack_limit)
|
||||||
|
|
Loading…
Reference in New Issue