# HG changeset patch # User Christian Hammond # Date 1082700855 0 # Node ID 0bde91a2ea4d4c639e8b18f0ce1d6b1e76a9d6c2 # Parent 585f43fb52a19a9a42c2429f71428f34ab665c8a [gaim-migrate @ 9530] Ughhh... C99 committer: Tailor Script diff -r 585f43fb52a1 -r 0bde91a2ea4d src/protocols/novell/nmcontact.c --- 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);