feature TMPDIR env variable.

This commit is contained in:
Tim Janik 1998-07-15 17:11:15 +00:00
parent acc1c38efe
commit d59147e308
2 changed files with 6 additions and 2 deletions

View File

@ -189,6 +189,8 @@ g_get_any_init (void)
{
struct passwd *pw;
g_tmp_dir = g_strdup (getenv ("TMPDIR"));
if (!g_tmp_dir)
g_tmp_dir = g_strdup (getenv ("TMP"));
if (!g_tmp_dir)
g_tmp_dir = g_strdup (getenv ("TEMP"));

View File

@ -189,6 +189,8 @@ g_get_any_init (void)
{
struct passwd *pw;
g_tmp_dir = g_strdup (getenv ("TMPDIR"));
if (!g_tmp_dir)
g_tmp_dir = g_strdup (getenv ("TMP"));
if (!g_tmp_dir)
g_tmp_dir = g_strdup (getenv ("TEMP"));