Use evil_tmpdir_get for getting Windows tmp dir

Signed-off-by: Chris Michael <cp.michael@samsung.com>
This commit is contained in:
Chris Michael 2015-02-06 11:52:26 -05:00
parent a227e9b495
commit 5a748534f4
1 changed files with 5 additions and 1 deletions

View File

@ -523,10 +523,14 @@ _homedir_get(char *buf, size_t size)
# endif
home = getenv("HOME");
#endif
if ((!home) || (home[0] == '\0'))
{
WRN("Could not get $HOME");
#ifdef _WIN32
home = evil_tmpdir_get();
#else
home = "/tmp";
#endif
}
return eina_strlcpy(buf, home, size) < size;