mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2024-12-25 06:56:14 +01:00
Fix regression when TMPDIR/TMP are unset
We should just be returning /tmp as a default, not calling g_getenv ("/tmp") which makes no sense. https://bugzilla.gnome.org/show_bug.cgi?id=672329
This commit is contained in:
parent
ad20e074c4
commit
0b6fdff05c
@ -696,7 +696,7 @@ g_get_any_init_do (void)
|
|||||||
if (g_tmp_dir == NULL || *g_tmp_dir == '\0')
|
if (g_tmp_dir == NULL || *g_tmp_dir == '\0')
|
||||||
{
|
{
|
||||||
g_free (g_tmp_dir);
|
g_free (g_tmp_dir);
|
||||||
g_tmp_dir = g_strdup (g_getenv ("/tmp"));
|
g_tmp_dir = g_strdup ("/tmp");
|
||||||
}
|
}
|
||||||
#endif /* !G_OS_WIN32 */
|
#endif /* !G_OS_WIN32 */
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user