]> spindle.queued.net Git - midori/commitdiff
NULL-check new speed dial titles to avoid "(null)"
authorPaweł Forysiuk <tuxator@o2.pl>
Thu, 27 Oct 2011 21:19:29 +0000 (23:19 +0200)
committerChristian Dywan <christian@twotoasts.de>
Thu, 27 Oct 2011 21:20:10 +0000 (23:20 +0200)
midori/midori-view.c

index 457f364326e15d1ba1a0469d737cf272ec75f2ff..ae3c727d08f5dd000d1a3f0f39957702aef20483 100644 (file)
@@ -3787,7 +3787,7 @@ prepare_speed_dial_html (MidoriView* view)
                 "<a class=\"cross\" href=\"#\" onclick='clearShortcut(\"s%d\");'></a>"
                 "<a href=\"%s\"><img src=\"data:image/png;base64,%s\"></a>"
                 "</div><div class=\"title\" onclick='renameShortcut(\"s%d\");'>%s</div></div>\n",
-                slot, slot, uri, encoded, slot, title);
+                slot, slot, uri, encoded, slot, title ? title : "");
 
             g_free (title);
             g_free (encoded);