[gaim-migrate @ 14700]

Thu, 08 Dec 2005 05:10:50 +0000

author
Ethan Blanton <elb@pidgin.im>
date
Thu, 08 Dec 2005 05:10:50 +0000
changeset 12393
1920d63edd79
parent 12392
64cdf96d308b
child 12394
20c1575a1174

[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.

src/protocols/oscar/oscar.c file | annotate | diff | comparison | revisions
--- 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);
 	}
 

mercurial