mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-08-26 10:58:53 +02:00
Check home for being NULL. (#143812, Ivan Wong)
2004-06-06 Tor Lillqvist <tml@iki.fi> * glib/gutils.c (g_get_any_init): Check home for being NULL. (#143812, Ivan Wong)
This commit is contained in:
committed by
Tor Lillqvist
parent
66ca6e1ac7
commit
ca5f51ee33
@@ -1,3 +1,8 @@
|
||||
2004-06-06 Tor Lillqvist <tml@iki.fi>
|
||||
|
||||
* glib/gutils.c (g_get_any_init): Check home for being
|
||||
NULL. (#143812, Ivan Wong)
|
||||
|
||||
2004-06-04 Manish Singh <yosh@gimp.org>
|
||||
|
||||
* glib/galloca.h: cpp #directives should always have the "#" in the
|
||||
|
@@ -1,3 +1,8 @@
|
||||
2004-06-06 Tor Lillqvist <tml@iki.fi>
|
||||
|
||||
* glib/gutils.c (g_get_any_init): Check home for being
|
||||
NULL. (#143812, Ivan Wong)
|
||||
|
||||
2004-06-04 Manish Singh <yosh@gimp.org>
|
||||
|
||||
* glib/galloca.h: cpp #directives should always have the "#" in the
|
||||
|
@@ -1,3 +1,8 @@
|
||||
2004-06-06 Tor Lillqvist <tml@iki.fi>
|
||||
|
||||
* glib/gutils.c (g_get_any_init): Check home for being
|
||||
NULL. (#143812, Ivan Wong)
|
||||
|
||||
2004-06-04 Manish Singh <yosh@gimp.org>
|
||||
|
||||
* glib/galloca.h: cpp #directives should always have the "#" in the
|
||||
|
@@ -1,3 +1,8 @@
|
||||
2004-06-06 Tor Lillqvist <tml@iki.fi>
|
||||
|
||||
* glib/gutils.c (g_get_any_init): Check home for being
|
||||
NULL. (#143812, Ivan Wong)
|
||||
|
||||
2004-06-04 Manish Singh <yosh@gimp.org>
|
||||
|
||||
* glib/galloca.h: cpp #directives should always have the "#" in the
|
||||
|
@@ -1,3 +1,8 @@
|
||||
2004-06-06 Tor Lillqvist <tml@iki.fi>
|
||||
|
||||
* glib/gutils.c (g_get_any_init): Check home for being
|
||||
NULL. (#143812, Ivan Wong)
|
||||
|
||||
2004-06-04 Manish Singh <yosh@gimp.org>
|
||||
|
||||
* glib/galloca.h: cpp #directives should always have the "#" in the
|
||||
|
@@ -871,7 +871,7 @@ g_get_any_init (void)
|
||||
gchar *home = g_getenv ("HOME");
|
||||
|
||||
/* Only believe HOME if it is an absolute path and exists */
|
||||
if (g_path_is_absolute (home) && g_file_test (home, G_FILE_TEST_IS_DIR))
|
||||
if (home && g_path_is_absolute (home) && g_file_test (home, G_FILE_TEST_IS_DIR))
|
||||
g_home_dir = g_strdup (home);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user