projects
/
platform
/
upstream
/
glib.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ad20e07
)
Fix regression when TMPDIR/TMP are unset
author
Colin Walters
<walters@verbum.org>
Wed, 22 Aug 2012 18:48:41 +0000
(14:48 -0400)
committer
Colin Walters
<walters@verbum.org>
Wed, 22 Aug 2012 18:48:41 +0000
(14:48 -0400)
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
glib/gutils.c
patch
|
blob
|
history
diff --git
a/glib/gutils.c
b/glib/gutils.c
index
38b5e44
..
49862ac
100644
(file)
--- a/
glib/gutils.c
+++ b/
glib/gutils.c
@@
-696,7
+696,7
@@
g_get_any_init_do (void)
if (g_tmp_dir == NULL || *g_tmp_dir == '\0')
{
g_free (g_tmp_dir);
- g_tmp_dir = g_strdup (
g_getenv ("/tmp")
);
+ g_tmp_dir = g_strdup (
"/tmp"
);
}
#endif /* !G_OS_WIN32 */