changeset 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 ee10d26f7fa9
children 51898e3031e6
files src/protocols/oscar/oscar.c
diffstat 1 files changed, 2 insertions(+), 3 deletions(-) [+]
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);
 	}