changeset 27951:9c461f2fb4a1

build fix
author Yoshiki Yazawa <yaz@honeyplanet.jp>
date Fri, 12 Jun 2009 06:58:41 +0000
parents fb593c327870
children b08b1f1111e4
files libpurple/protocols/yahoo/yahoo.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/libpurple/protocols/yahoo/yahoo.c	Fri Jun 12 05:27:34 2009 +0000
+++ b/libpurple/protocols/yahoo/yahoo.c	Fri Jun 12 06:58:41 2009 +0000
@@ -4412,6 +4412,7 @@
 	struct yahoo_packet *pkt = NULL;
 	char *msg = NULL, *msg2 = NULL;
 	PurpleStatus *status = NULL;
+	gboolean utf8 = TRUE;
 
 	if (idle && yd->current_status != YAHOO_STATUS_CUSTOM)
 		yd->current_status = YAHOO_STATUS_IDLE;
@@ -4429,7 +4430,6 @@
 			status = purple_presence_get_active_status(purple_account_get_presence(purple_connection_get_account(gc)));
 		tmp = purple_status_get_attr_string(status, "message");
 		if (tmp != NULL) {
-			gboolean utf8 = TRUE;
 			msg = yahoo_string_encode(gc, tmp, &utf8);
 			msg2 = purple_markup_strip_html(msg);
 			yahoo_packet_hash_str(pkt, 97, utf8 ? "1" : 0);