pidgin: 8e560053: disapproval of revision '3a12ece5b629e6d...

darkrain42 at pidgin.im darkrain42 at pidgin.im
Mon Jun 20 02:16:43 EDT 2011


----------------------------------------------------------------------
Revision: 8e560053e153f10e0b7a2d211f7c20fbe7a2328d
Parent:   3a12ece5b629e6de76faec79315514e70ccb32bb
Author:   darkrain42 at pidgin.im
Date:     06/20/11 02:03:02
Date:     06/20/11 02:06:31
Date:     06/20/11 02:07:28
Branch:   im.pidgin.pidgin
URL: http://d.pidgin.im/viewmtn/revision/info/8e560053e153f10e0b7a2d211f7c20fbe7a2328d

Changelog: 

disapproval of revision '3a12ece5b629e6de76faec79315514e70ccb32bb'

Changes against parent 3a12ece5b629e6de76faec79315514e70ccb32bb

  patched  libpurple/account.c

-------------- next part --------------
============================================================
--- libpurple/account.c	ac86f97fe4ff1a09ed204649bc7eaaa4b50f692b
+++ libpurple/account.c	225d714d249dc7765a130fc18164aafc44788870
@@ -3038,19 +3038,19 @@ purple_accounts_find(const char *name, c
 	g_return_val_if_fail(name != NULL, NULL);
 	g_return_val_if_fail(protocol_id != NULL, NULL);
 
-	who = g_strdup(purple_normalize(account, name));
 	for (l = purple_accounts_get_all(); l != NULL; l = l->next) {
 		account = (PurpleAccount *)l->data;
 		if (!purple_strequal(account->protocol_id, protocol_id))
 			continue;
 
+		who = g_strdup(purple_normalize(account, name));
 		if (purple_strequal(purple_normalize(account, purple_account_get_username(account)), who)) {
 			g_free(who);
 			return account;
 		}
+		g_free(who);
 	}
 
-	g_free(who);
 	return NULL;
 }
 


More information about the Commits mailing list