Mercurial > pidgin
comparison libpurple/protocols/oscar/family_feedbag.c @ 21762:477b020d5945
Recycle, reduce, reuse
author | Mark Doliner <mark@kingant.net> |
---|---|
date | Tue, 04 Dec 2007 06:12:52 +0000 |
parents | 98514870b73c |
children | 979a81468e19 |
comparison
equal
deleted
inserted
replaced
21760:6360da6f3cc1 | 21762:477b020d5945 |
---|---|
339 * @param sn The group name of the desired item. | 339 * @param sn The group name of the desired item. |
340 * @return Return a pointer to the name of the item if found, else return NULL; | 340 * @return Return a pointer to the name of the item if found, else return NULL; |
341 */ | 341 */ |
342 struct aim_ssi_item *aim_ssi_itemlist_exists(struct aim_ssi_item *list, const char *sn) | 342 struct aim_ssi_item *aim_ssi_itemlist_exists(struct aim_ssi_item *list, const char *sn) |
343 { | 343 { |
344 struct aim_ssi_item *cur; | 344 if (!sn) |
345 if (!list || !sn) | |
346 return NULL; | 345 return NULL; |
347 for (cur=list; cur; cur=cur->next) | 346 return aim_ssi_itemlist_finditem(list, NULL, sn, AIM_SSI_TYPE_BUDDY); |
348 if ((cur->type == AIM_SSI_TYPE_BUDDY) && (cur->name) && (!aim_sncmp(cur->name, sn))) | |
349 return cur; | |
350 return NULL; | |
351 } | 347 } |
352 | 348 |
353 /** | 349 /** |
354 * Locally find the parent item of the given buddy name. | 350 * Locally find the parent item of the given buddy name. |
355 * | 351 * |