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:
Tor Lillqvist
2004-06-06 17:18:28 +00:00
committed by Tor Lillqvist
parent 66ca6e1ac7
commit ca5f51ee33
6 changed files with 26 additions and 1 deletions

View File

@@ -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

View File

@@ -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

View File

@@ -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

View File

@@ -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

View File

@@ -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

View File

@@ -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);
}