Fixed bug: purple_debug_info may contain NULL string openq

Mon, 03 Nov 2008 02:20:48 +0000

author
Hu Yong <ccpaging@gmail.com>
date
Mon, 03 Nov 2008 02:20:48 +0000
branch
openq
changeset 25024
79e15013a6d9
parent 25023
65a94727c54b
child 25025
e1e8fdc48c45

Fixed bug: purple_debug_info may contain NULL string

libpurple/protocols/qq/group_internal.c file | annotate | diff | comparison | revisions
--- a/libpurple/protocols/qq/group_internal.c	Fri Oct 31 07:50:33 2008 +0000
+++ b/libpurple/protocols/qq/group_internal.c	Mon Nov 03 02:20:48 2008 +0000
@@ -122,7 +122,8 @@
 	PurpleChat *chat;
 
 	purple_debug_info("QQ", "Add new chat: id %d, ext id %d, title %s\n",
-		rmd->id, rmd->ext_id, rmd->title_utf8);
+		rmd->id, rmd->ext_id,
+		rmd->title_utf8 == NULL ? "(NULL)" : rmd->title_utf8);
 
 	components = g_hash_table_new_full(g_str_hash, g_str_equal, g_free, g_free);
 	g_hash_table_insert(components,

mercurial