Mercurial > pidgin.yaz
diff src/protocols/novell/nmcontact.c @ 8769:0bde91a2ea4d
[gaim-migrate @ 9530]
Ughhh... C99
committer: Tailor Script <tailor@pidgin.im>
author | Christian Hammond <chipx86@chipx86.com> |
---|---|
date | Fri, 23 Apr 2004 06:14:15 +0000 |
parents | 046dd8ef2920 |
children | 7df86465ec82 |
line wrap: on
line diff
--- a/src/protocols/novell/nmcontact.c Fri Apr 23 01:06:24 2004 +0000 +++ b/src/protocols/novell/nmcontact.c Fri Apr 23 06:14:15 2004 +0000 @@ -701,11 +701,11 @@ void nm_folder_remove_contact(NMFolder * folder, NMContact * contact) { + GSList *node = folder->contacts; + if (folder == NULL || contact == NULL) return; - GSList *node = folder->contacts; - while (node) { if (contact->id == ((NMContact *) (node->data))->id) { folder->contacts = g_slist_remove(folder->contacts, node->data);