Mercurial > pidgin
diff src/protocols/yahoo/yahoo.c @ 10504:1a97d5e88d12
[gaim-migrate @ 11796]
Lots of things here:
- Several memory leak fixes
- A few invalid memory access fixes
- Fix a yahoo crash going idle when away
- Fix Add user in chats to actually fill in the screenname
- Add gaim_account_{get,set}_enabled to perl
- Fix command priorities (fixes /me in IRC)
- Fix MSN notification server transfer to be quiet about it
- Fix MSN blist sync if user has insane friendly name
- Make the docklet less crash-happy if it fails to embed in 3 seconds
- Only probe for native plugins with the correct file extension
- 1 typo fix :)
... and quite possibly something else I forgot.
committer: Tailor Script <tailor@pidgin.im>
author | Stu Tomlinson <stu@nosnilmot.com> |
---|---|
date | Tue, 11 Jan 2005 17:25:06 +0000 |
parents | 3e4ecbdf8d0a |
children | 7d165e1eec4d |
line wrap: on
line diff
--- a/src/protocols/yahoo/yahoo.c Tue Jan 11 02:00:44 2005 +0000 +++ b/src/protocols/yahoo/yahoo.c Tue Jan 11 17:25:06 2005 +0000 @@ -2841,10 +2841,16 @@ yahoo_packet_hash_int(pkt, 10, yd->current_status); if (yd->current_status == YAHOO_STATUS_CUSTOM) { + const char *tmp; GaimStatus *status = gaim_presence_get_active_status(gaim_account_get_presence(gaim_connection_get_account(gc))); - msg = yahoo_string_encode(gc, gaim_status_get_attr_string(status, "message"), NULL); //this line crashes, fix it - msg2 = gaim_unescape_html(msg); - yahoo_packet_hash_str(pkt, 19, msg2); + tmp = gaim_status_get_attr_string(status, "message"); + if (tmp != NULL) { + msg = yahoo_string_encode(gc, tmp, NULL); + msg2 = gaim_unescape_html(msg); + yahoo_packet_hash_str(pkt, 19, msg2); + } else { + yahoo_packet_hash_str(pkt, 19, ""); + } } else { yahoo_packet_hash_str(pkt, 19, ""); }