From: Alexander Butenko Date: Fri, 23 Jul 2010 15:19:38 +0000 (-0400) Subject: Dont add items with empty uris into history X-Git-Url: https://spindle.queued.net/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=1339dc671b9e656e84b53d21cd0d2863e80fe533;p=midori Dont add items with empty uris into history --- diff --git a/midori/midori-browser.c b/midori/midori-browser.c index b82abafc..f4e7a75f 100644 --- a/midori/midori-browser.c +++ b/midori/midori-browser.c @@ -616,8 +616,10 @@ midori_view_notify_title_cb (GtkWidget* widget, KatzeItem* proxy; if (browser->history && browser->maximum_history_age) { + const gchar* proxy_uri; proxy = midori_view_get_proxy_item (view); - if (katze_item_get_uri (proxy) && + proxy_uri = katze_item_get_uri (proxy); + if (proxy_uri && *proxy_uri && proxy_uri[1] && (katze_item_get_meta_integer (proxy, "process") == -1)) { midori_browser_new_history_item (browser, proxy);