aboutsummaryrefslogtreecommitdiffstats
path: root/src/window-commands.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/window-commands.c')
-rw-r--r--src/window-commands.c9
1 files changed, 8 insertions, 1 deletions
diff --git a/src/window-commands.c b/src/window-commands.c
index b53ebc709..ca2ef3b00 100644
--- a/src/window-commands.c
+++ b/src/window-commands.c
@@ -157,7 +157,14 @@ window_cmd_go_home (EggAction *action,
location = eel_gconf_get_string (CONF_GENERAL_HOMEPAGE);
- ephy_window_load_url (window, location ? location : "about:blank");
+ if (location == NULL || location[0] == '\0')
+ {
+ g_free (location);
+
+ location = g_strdup ("about:blank");
+ }
+
+ ephy_window_load_url (window, location);
g_free (location);
}