From ff6a4b419741110cfcbd10596a5efce5e7a3f178 Mon Sep 17 00:00:00 2001 From: Christian Dywan Date: Thu, 26 Mar 2009 16:19:52 +0100 Subject: [PATCH] Check the host as well before computing a tab color --- extensions/colorful-tabs.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/extensions/colorful-tabs.c b/extensions/colorful-tabs.c index 2eea40e5..6d8a46e5 100644 --- a/extensions/colorful-tabs.c +++ b/extensions/colorful-tabs.c @@ -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);