pidgin: 994f8bdc: Fix a NULL printf. Fixes #5387.

datallah at pidgin.im datallah at pidgin.im
Tue May 13 22:25:42 EDT 2008


-----------------------------------------------------------------
Revision: 994f8bdccfcf73a73924e593d2c398c8d416e5e9
Ancestor: bb87bb7d79b90e03008fa67a09a941492a582312
Author: datallah at pidgin.im
Date: 2008-05-14T02:21:25
Branch: im.pidgin.pidgin
URL: http://d.pidgin.im/viewmtn/revision/info/994f8bdccfcf73a73924e593d2c398c8d416e5e9

Modified files:
        pidgin/gtkblist.c

ChangeLog: 

Fix a NULL printf. Fixes #5387.

-------------- next part --------------
============================================================
--- pidgin/gtkblist.c	c1100856c3d80e836fc90c458565683e97cb8cad
+++ pidgin/gtkblist.c	da98d16f271f9e5c3397e19206dcf4a03cbf9d7f
@@ -2716,7 +2716,8 @@ static struct tooltip_data * create_tip_
 		 * above node types first. */
 		tmp = g_strdup(_("Unknown node type"));
 	}
-	node_name = g_strdup_printf("<span size='x-large' weight='bold'>%s</span>", tmp);
+	node_name = g_strdup_printf("<span size='x-large' weight='bold'>%s</span>",
+								tmp ? tmp : "");
 	g_free(tmp);
 
 	td->name_layout = create_pango_layout(node_name, &td->name_width, &td->name_height);


More information about the Commits mailing list