# HG changeset patch # User Mark Doliner # Date 1155381323 0 # Node ID b9e9938b1afa27cf0d5221e99158a8c542259ab4 # Parent 58c9f678b77a43f939181b7d7579a4c2fe23a75d [gaim-migrate @ 16719] Get rid of two assertion failures and an accidentally double colon. I found all three of these when getting the jabber info of quser.alpha.qunu.com while trying to figure out http://trac.adiumx.com/ticket/4686 committer: Tailor Script diff -r 58c9f678b77a -r b9e9938b1afa src/protocols/jabber/buddy.c --- a/src/protocols/jabber/buddy.c Sat Aug 12 10:59:13 2006 +0000 +++ b/src/protocols/jabber/buddy.c Sat Aug 12 11:15:23 2006 +0000 @@ -674,7 +674,7 @@ } if(jbr->client.name) { g_string_append_printf(info_text, "%s: %s %s
", - _("Client:"), jbr->client.name, + _("Client"), jbr->client.name, jbr->client.version ? jbr->client.version : ""); if(jbr->client.os) { g_string_append_printf(info_text, "%s: %s
", @@ -688,7 +688,8 @@ g_free(resource_name); - info_text = g_string_append(info_text, jbi->vcard_text); + if (jbi->vcard_text != NULL) + info_text = g_string_append(info_text, jbi->vcard_text); gaim_notify_userinfo(jbi->js->gc, jbi->jid, info_text->str, NULL, NULL); @@ -699,7 +700,9 @@ g_string_free(info_text, TRUE); - gaim_timeout_remove(jbi->timeout_handle); + if (jbi->timeout_handle > 0) + gaim_timeout_remove(jbi->timeout_handle); + g_free(jbi->jid); g_hash_table_destroy(jbi->resources); g_free(jbi->vcard_text);