Return empty string if there's no speed dial

'markup' is not set at this point.
This commit is contained in:
Christian Dywan 2011-07-28 23:12:46 +02:00
parent 6a3c3d155a
commit 053dcb98ca

View file

@ -3566,7 +3566,7 @@ prepare_speed_dial_html (MidoriView* view)
g_object_get (browser, "speed-dial", &key_file, NULL); g_object_get (browser, "speed-dial", &key_file, NULL);
if (!key_file) if (!key_file)
return g_string_free (markup, FALSE); return g_strdup ("");
file_name = g_build_filename ("midori", "res", "speeddial-head.html", NULL); file_name = g_build_filename ("midori", "res", "speeddial-head.html", NULL);
file_path = sokoke_find_data_filename (file_name); file_path = sokoke_find_data_filename (file_name);