im.pidgin.pidgin: 8e868e68fa3050bfdc7a758df26c20b564f4e5f9

markdoliner at pidgin.im markdoliner at pidgin.im
Tue Dec 4 01:39:06 EST 2007


-----------------------------------------------------------------
Revision: 8e868e68fa3050bfdc7a758df26c20b564f4e5f9
Ancestor: 32e84af5c8a93baaf4b0c4ba17149327f3e241d1
Author: markdoliner at pidgin.im
Date: 2007-12-04T06:12:52
Branch: im.pidgin.pidgin

Modified files:
        libpurple/protocols/oscar/family_feedbag.c

ChangeLog: 

Recycle, reduce, reuse

-------------- next part --------------
============================================================
--- libpurple/protocols/oscar/family_feedbag.c	de6a93267f8bbae30df4bf307b5a31ecfd8270d9
+++ libpurple/protocols/oscar/family_feedbag.c	ba3e394439bb31e14198edca7aed575ea4f068e3
@@ -341,13 +341,9 @@ struct aim_ssi_item *aim_ssi_itemlist_ex
  */
 struct aim_ssi_item *aim_ssi_itemlist_exists(struct aim_ssi_item *list, const char *sn)
 {
-	struct aim_ssi_item *cur;
-	if (!list || !sn)
+	if (!sn)
 		return NULL;
-	for (cur=list; cur; cur=cur->next)
-		if ((cur->type == AIM_SSI_TYPE_BUDDY) && (cur->name) && (!aim_sncmp(cur->name, sn)))
-			return cur;
-	return NULL;
+	return aim_ssi_itemlist_finditem(list, NULL, sn, AIM_SSI_TYPE_BUDDY);
 }
 
 /**


More information about the Commits mailing list