libgaim/protocols/yahoo/yahoo.c

changeset 14362
2174bcc05489
parent 14347
4c0fe0512e73
child 14366
ba943644ad80
--- a/libgaim/protocols/yahoo/yahoo.c	Wed Aug 23 01:35:44 2006 +0000
+++ b/libgaim/protocols/yahoo/yahoo.c	Wed Aug 23 02:21:00 2006 +0000
@@ -477,17 +477,16 @@
 	GHashTable *ht;
 	char *grp = NULL;
 	char *norm_bud = NULL;
+	YahooFriend *f = NULL; /* It's your friends. They're going to want you to share your StarBursts. */
+	                       /* But what if you had no friends? */
+	GaimBuddy *b;
+	GaimGroup *g;
+
 
 	ht = g_hash_table_new_full(g_str_hash, g_str_equal, g_free, (GDestroyNotify) g_slist_free);
 
 	while (l) {
 		struct yahoo_pair *pair = l->data;
-		YahooFriend *f = NULL; /* It's your friends. They're going to want you to share your StarBursts. */
-		                       /* But what if you had no friends? */
-		GaimBuddy *b;
-		GaimGroup *g;
-
-
 		l = l->next;
 
 		switch (pair->key) {
@@ -514,8 +513,10 @@
 
 			break;
 		case 241: /* another protocol user */
-			if (f)
+			if (f) {
 				f->protocol = strtol(pair->value, NULL, 10);
+				gaim_debug_info("yahoo", "Setting protocol to %d\n", f->protocol);
+			}
 			break;
 		/* case 242: */ /* this seems related to 241 */
 			/* break; */

mercurial