]> spindle.queued.net Git - midori/commitdiff
Return empty string if there's no speed dial
authorChristian Dywan <christian@twotoasts.de>
Thu, 28 Jul 2011 21:12:46 +0000 (23:12 +0200)
committerChristian Dywan <christian@twotoasts.de>
Thu, 28 Jul 2011 21:12:46 +0000 (23:12 +0200)
'markup' is not set at this point.

midori/midori-view.c

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