From 4f0cb14f2b93635fbb7623c55884e7a03c9a8f82 Mon Sep 17 00:00:00 2001 From: Christian Dywan Date: Sat, 8 Aug 2009 23:52:51 +0200 Subject: [PATCH] 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. --- midori/midori-view.c | 2 ++ 1 file changed, 2 insertions(+) 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); -- 2.39.5