Do NULL-safe address comparison when loading the session
This commit is contained in:
parent
5b640c7f46
commit
60eca91b74
1 changed files with 1 additions and 1 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue