From: Christian Dywan Date: Sat, 8 Aug 2009 21:52:51 +0000 (+0200) Subject: Avoid a warning in case the speed dial head isn't available X-Git-Url: https://spindle.queued.net/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=4f0cb14f2b93635fbb7623c55884e7a03c9a8f82;p=midori Avoid a warning in case the speed dial head isn't available Ideally we wouldn't depend on a file for essential data, for now we ignore it. --- diff --git a/midori/midori-view.c b/midori/midori-view.c index 1dc16d06..812a6cd1 100644 --- a/midori/midori-view.c +++ b/midori/midori-view.c @@ -2126,6 +2126,8 @@ midori_view_set_uri (MidoriView* view, g_file_get_contents (MDATADIR "/midori/res/speeddial-head.html", &speed_dial_head, NULL, NULL); + if (G_UNLIKELY (!speed_dial_head)) + speed_dial_head = g_strdup (""); res_server = sokoke_get_res_server (); port = soup_server_get_port (res_server);