]> spindle.queued.net Git - midori/commitdiff
Do NULL-safe address comparison when loading the session
authorChristian Dywan <christian@twotoasts.de>
Fri, 30 Jul 2010 23:29:57 +0000 (01:29 +0200)
committerChristian Dywan <christian@twotoasts.de>
Fri, 30 Jul 2010 23:29:57 +0000 (01:29 +0200)
midori/main.c

index fd5ec988e0e0eecc297f0ef127f001856079e8e2..35ac8c787400c97ac9f44f8ea59a7756971916cf 100644 (file)
@@ -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);