[Xfce4-commits] <midori:master> NULL-check new speed dial titles to avoid "(null)"

Christian Dywan noreply at xfce.org
Thu Oct 27 23:24:02 CEST 2011


Updating branch refs/heads/master
         to 948301f08604fdc4c41af0fffe763b88ec831660 (commit)
       from 0e5cb28e09a22dc0ec49a4fa84060434fa4b901e (commit)

commit 948301f08604fdc4c41af0fffe763b88ec831660
Author: Paweł Forysiuk <tuxator at o2.pl>
Date:   Thu Oct 27 23:19:29 2011 +0200

    NULL-check new speed dial titles to avoid "(null)"

 midori/midori-view.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/midori/midori-view.c b/midori/midori-view.c
index 457f364..ae3c727 100644
--- a/midori/midori-view.c
+++ b/midori/midori-view.c
@@ -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);


More information about the Xfce4-commits mailing list