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.
This commit is contained in:
parent
9bee6419b6
commit
4f0cb14f2b
1 changed files with 2 additions and 0 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue