changeset 5504:e1e6b2fda105

[gaim-migrate @ 5903] I don't know what I was thinking committer: Tailor Script <tailor@pidgin.im>
author Mark Doliner <mark@kingant.net>
date Sat, 24 May 2003 13:47:14 +0000
parents 38ae6c7b4387
children 870207a49f2f
files src/protocols/oscar/ssi.c
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/src/protocols/oscar/ssi.c	Sat May 24 06:13:42 2003 +0000
+++ b/src/protocols/oscar/ssi.c	Sat May 24 13:47:14 2003 +0000
@@ -678,11 +678,11 @@
 		cur = next;
 	}
 
-	/* Check if there are empty groups */
+	/* Check if there are empty groups and delete them */
 	cur = sess->ssi.local;
 	while (cur) {
 		next = cur->next;
-		if ((cur->type == AIM_SSI_TYPE_GROUP) && (cur->data)) {
+		if (cur->type == AIM_SSI_TYPE_GROUP) {
 			aim_tlv_t *tlv = aim_gettlv(cur->data, 0x00c8, 1);
 			if (!tlv || !tlv->length)
 				aim_ssi_itemlist_del(&sess->ssi.local, cur);