From: Christian Dywan Date: Fri, 30 Jul 2010 23:29:57 +0000 (+0200) Subject: Do NULL-safe address comparison when loading the session X-Git-Url: https://spindle.queued.net/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=60eca91b74449e511041432ddfcd0268bab6bc6f;p=midori Do NULL-safe address comparison when loading the session --- 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);