fix xdg config changes (not enabled yet but changes added segv).

This commit is contained in:
Carsten Haitzler 2013-05-28 15:19:33 +09:00
parent 643c9cff24
commit 7a69eb2163
1 changed files with 2 additions and 2 deletions

View File

@ -516,7 +516,7 @@ _elm_user_dir_snprintf(char *dst,
const char *fmt,
...)
{
const char *home;
const char *home = NULL;
size_t user_dir_len, off;
va_list ap;
@ -537,7 +537,7 @@ _elm_user_dir_snprintf(char *dst,
else
#endif
{
if (!home) home = getenv("HOME");
home = getenv("HOME");
if (!home) home = "/";
#ifdef DOXDG
user_dir_len = eina_str_join_len