pidgin: 3f9a4a19: Initialize pointer, fix a typo to fix a ...

sadrul at pidgin.im sadrul at pidgin.im
Thu Jun 17 18:25:48 EDT 2010


-----------------------------------------------------------------
Revision: 3f9a4a1940360f059c6e0ba16f841443e5b07da1
Ancestor: 957a4bbd52c402829dbe3dbe7a88d69e70d00a97
Author: sadrul at pidgin.im
Date: 2010-06-17T22:21:53
Branch: im.pidgin.pidgin
URL: http://d.pidgin.im/viewmtn/revision/info/3f9a4a1940360f059c6e0ba16f841443e5b07da1

Modified files:
        libpurple/protocols/yahoo/libymsg.c

ChangeLog: 

Initialize pointer, fix a typo to fix a crash.

-------------- next part --------------
============================================================
--- libpurple/protocols/yahoo/libymsg.c	ff966131fb334d1a9f45da8f4ab0767ef6db302a
+++ libpurple/protocols/yahoo/libymsg.c	2284abcd1dfed143756540ddb01b96577b7d8928
@@ -402,10 +402,10 @@ static void yahoo_do_group_check(PurpleA
 	PurpleGroup *g;
 	GSList *list, *i;
 	gboolean onlist = FALSE;
-	char *oname;
+	char *oname = NULL;
 
 	if (g_hash_table_lookup_extended(ht, purple_normalize(account, name), (gpointer *)&oname, (gpointer *)&list))
-		g_hash_table_steal(ht, oname);
+		g_hash_table_steal(ht, name);
 	else
 		list = purple_find_buddies(account, name);
 
@@ -841,15 +841,14 @@ static void yahoo_process_notify(PurpleC
 			default:
 				break;
 		}
-	
+
 		if (*stat == '1')
 			serv_got_typing(gc, fed_from, 0, PURPLE_TYPING);
 		else
 			serv_got_typing_stopped(gc, fed_from);
-		
+
 		if (fed_from != from)
 			g_free(fed_from);
-	
 	} else if (!g_ascii_strncasecmp(msg, "GAME", strlen("GAME"))) {
 		PurpleBuddy *bud = purple_find_buddy(account, from);
 
@@ -1012,7 +1011,6 @@ static void yahoo_process_message(Purple
 						break;
 				}
 				purple_debug_info("yahoo", "Message from federated (%d) buddy %s.\n", im->fed, im->fed_from);
-					
 			}
 			/* peer session id */
 			if (im && (pair->key == 11)) {


More information about the Commits mailing list