]> spindle.queued.net Git - midori/commitdiff
Check the host as well before computing a tab color
authorChristian Dywan <christian@twotoasts.de>
Thu, 26 Mar 2009 15:19:52 +0000 (16:19 +0100)
committerChristian Dywan <christian@twotoasts.de>
Thu, 26 Mar 2009 15:19:52 +0000 (16:19 +0100)
extensions/colorful-tabs.c

index 2eea40e550b1aef1234a33f3a85ad0c11f1f0c4d..6d8a46e59b012a75ed093e96568916ff037d3dfe 100644 (file)
@@ -45,7 +45,7 @@ colorful_tabs_view_notify_uri_cb (MidoriView*      view,
        dark, we lighten it up a litte. Finally we make the event box
        visible and modify its background. */
 
-    if ((uri = soup_uri_new (midori_view_get_display_uri (view))))
+    if ((uri = soup_uri_new (midori_view_get_display_uri (view))) && uri->host)
     {
         hash = g_compute_checksum_for_string (G_CHECKSUM_MD5, uri->host, -1);
         soup_uri_free (uri);