Mercurial > pidgin
diff src/protocols/oscar/oscar.c @ 12393:a2f7bb907926
[gaim-migrate @ 14700]
This changes gaim_got_infoblock to only try to set the message on a
buddy if a message was actually received. This fixes a crash when
G_DISABLE_CHECKS is defined.
committer: Tailor Script <tailor@pidgin.im>
| author | Ethan Blanton <elb@pidgin.im> |
|---|---|
| date | Thu, 08 Dec 2005 05:10:50 +0000 |
| parents | 7f1c4630799c |
| children | a88ca6da0b38 |
line wrap: on
line diff
--- a/src/protocols/oscar/oscar.c Thu Dec 08 03:30:05 2005 +0000 +++ b/src/protocols/oscar/oscar.c Thu Dec 08 05:10:50 2005 +0000 @@ -5124,11 +5124,10 @@ gchar *charset = oscar_encoding_extract(userinfo->away_encoding); message = oscar_encoding_to_utf8(charset, userinfo->away, userinfo->away_len); g_free(charset); + gaim_status_set_attr_string(status, "message", message); + g_free(message); } - gaim_status_set_attr_string(status, "message", message); - g_free(message); - gaim_blist_update_buddy_status(b, status); }
