Mercurial > ~mikael > mcabber > hg
diff mcabber/src/roster.c @ 483:4a10c04ac2fb
Fix a bug in roster_find()
author | Mikael Berthe <mikael@lilotux.net> |
---|---|
date | Wed, 05 Oct 2005 21:46:13 +0200 |
parents | 882e1acae422 |
children | 21ab22a60bcb |
line wrap: on
line diff
--- a/mcabber/src/roster.c Wed Oct 05 19:30:35 2005 +0200 +++ b/mcabber/src/roster.c Wed Oct 05 21:46:13 2005 +0200 @@ -215,11 +215,9 @@ if (roster_type & ROSTER_TYPE_GROUP) { if ((type == namesearch) && !strcasecmp(jidname, roster_elt->name)) return sl_roster_elt; - } else { - res = g_slist_find_custom(roster_elt->list, &sample, comp); - if (res) - return res; } + res = g_slist_find_custom(roster_elt->list, &sample, comp); + if (res) return res; sl_roster_elt = g_slist_next(sl_roster_elt); } return NULL;