oops, do not need to del it.

SVN revision: 72321
This commit is contained in:
Gustavo Sverzut Barbieri 2012-06-17 22:34:41 +00:00
parent d2321e4f65
commit 3382690cb2
1 changed files with 3 additions and 11 deletions

View File

@ -8,17 +8,10 @@ static Eet_Data_Descriptor *edd_base = NULL;
static const char *
_config_home_get(void)
{
static char path[PATH_MAX] = "";
#ifdef ELM_EFREET
const char *tmp = efreet_config_home_get();
size_t len = eina_stringshare_strlen(tmp);
if (len + 1 < PATH_MAX)
memcpy(path, tmp, len + 1);
eina_stringshare_del(tmp);
return efreet_config_home_get();
#else
static char path[PATH_MAX] = "";
const char *v = getenv("XDG_CONFIG_HOME");
if (v) eina_strlcpy(path, v, sizeof(path));
else
@ -32,9 +25,8 @@ _config_home_get(void)
eina_strlcpy(path, v, sizeof(path));
}
}
#endif
return path;
#endif
}
void