Mercurial > pidgin
comparison libpurple/protocols/qq/group_internal.c @ 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 | b6f09c1c79ce |
children | e57311348bfb |
comparison
equal
deleted
inserted
replaced
24604:604027798a46 | 24605:95735ee46dd9 |
---|---|
120 GHashTable *components; | 120 GHashTable *components; |
121 PurpleGroup *g; | 121 PurpleGroup *g; |
122 PurpleChat *chat; | 122 PurpleChat *chat; |
123 | 123 |
124 purple_debug_info("QQ", "Add new chat: id %d, ext id %d, title %s\n", | 124 purple_debug_info("QQ", "Add new chat: id %d, ext id %d, title %s\n", |
125 rmd->id, rmd->ext_id, rmd->title_utf8); | 125 rmd->id, rmd->ext_id, |
126 rmd->title_utf8 == NULL ? "(NULL)" : rmd->title_utf8); | |
126 | 127 |
127 components = g_hash_table_new_full(g_str_hash, g_str_equal, g_free, g_free); | 128 components = g_hash_table_new_full(g_str_hash, g_str_equal, g_free, g_free); |
128 g_hash_table_insert(components, | 129 g_hash_table_insert(components, |
129 g_strdup(QQ_ROOM_KEY_INTERNAL_ID), g_strdup_printf("%d", rmd->id)); | 130 g_strdup(QQ_ROOM_KEY_INTERNAL_ID), g_strdup_printf("%d", rmd->id)); |
130 g_hash_table_insert(components, g_strdup(QQ_ROOM_KEY_EXTERNAL_ID), | 131 g_hash_table_insert(components, g_strdup(QQ_ROOM_KEY_EXTERNAL_ID), |