changeset 24605:95735ee46dd9

Fixed bug: purple_debug_info may contain NULL string
author Hu Yong <ccpaging@gmail.com>
date Mon, 03 Nov 2008 02:20:48 +0000
parents 604027798a46
children 16434c2b52f4
files libpurple/protocols/qq/group_internal.c
diffstat 1 files changed, 2 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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,