From 60eca91b74449e511041432ddfcd0268bab6bc6f Mon Sep 17 00:00:00 2001 From: Christian Dywan Date: Sat, 31 Jul 2010 01:29:57 +0200 Subject: [PATCH] Do NULL-safe address comparison when loading the session --- midori/main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/midori/main.c b/midori/main.c index fd5ec988..35ac8c78 100644 --- a/midori/main.c +++ b/midori/main.c @@ -1259,7 +1259,7 @@ midori_load_session (gpointer data) midori_browser_set_current_page (browser, current); if (!(item = katze_array_get_nth_item (_session, current))) item = katze_array_get_nth_item (_session, 0); - if (!strcmp (katze_item_get_uri (item), "")) + if (!g_strcmp0 (katze_item_get_uri (item), "")) midori_browser_activate_action (browser, "Location"); g_object_unref (settings); -- 2.39.5