Mercurial > pidgin
changeset 11072:fe1a1d73f42c
[gaim-migrate @ 13080]
Those same 2 changes that I just made to oldstatus
committer: Tailor Script <tailor@pidgin.im>
author | Mark Doliner <mark@kingant.net> |
---|---|
date | Sat, 09 Jul 2005 18:54:43 +0000 |
parents | e6b4badef34d |
children | 634fec5ed0f2 |
files | src/protocols/oscar/ssi.c |
diffstat | 1 files changed, 3 insertions(+), 4 deletions(-) [+] |
line wrap: on
line diff
--- a/src/protocols/oscar/ssi.c Fri Jul 08 06:47:24 2005 +0000 +++ b/src/protocols/oscar/ssi.c Sat Jul 09 18:54:43 2005 +0000 @@ -671,20 +671,19 @@ /* Make sure there aren't any duplicate buddies in a group, or duplicate permits or denies */ cur = sess->ssi.local; while (cur) { - next = cur->next; if ((cur->type == AIM_SSI_TYPE_BUDDY) || (cur->type == AIM_SSI_TYPE_PERMIT) || (cur->type == AIM_SSI_TYPE_DENY)) { struct aim_ssi_item *cur2, *next2; - cur2 = next; + cur2 = cur->next; while (cur2) { next2 = cur2->next; - if ((cur->type == cur2->type) && (cur->gid == cur2->gid) && (!strcmp(cur->name, cur2->name))) { + if ((cur->type == cur2->type) && (cur->gid == cur2->gid) && (cur->name != NULL) && (cur2->name != NULL) && (!strcmp(cur->name, cur2->name))) { aim_ssi_itemlist_del(&sess->ssi.local, cur2); } cur2 = next2; } } - cur = next; + cur = cur->next; } /* Check if there are empty groups and delete them */