# HG changeset patch # User Luke Schierer # Date 1082732559 0 # Node ID 7df86465ec82c1c0c26595120b654574a56fe124 # Parent 0bde91a2ea4d4c639e8b18f0ce1d6b1e76a9d6c2 [gaim-migrate @ 9531] using a pointer before checking it isn't exactly a good thing. nosnilmot caught this. committer: Tailor Script diff -r 0bde91a2ea4d -r 7df86465ec82 src/protocols/novell/nmcontact.c --- a/src/protocols/novell/nmcontact.c Fri Apr 23 06:14:15 2004 +0000 +++ b/src/protocols/novell/nmcontact.c Fri Apr 23 15:02:39 2004 +0000 @@ -701,11 +701,13 @@ void nm_folder_remove_contact(NMFolder * folder, NMContact * contact) { - GSList *node = folder->contacts; + GSList *node; if (folder == NULL || contact == NULL) return; + node = folder->contacts; + while (node) { if (contact->id == ((NMContact *) (node->data))->id) { folder->contacts = g_slist_remove(folder->contacts, node->data);