From: Luke S. <lsc...@us...> - 2004-04-23 15:02:53
|
Update of /cvsroot/gaim/gaim/src/protocols/novell In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv27347/src/protocols/novell Modified Files: nmcontact.c Log Message: using a pointer before checking it isn't exactly a good thing. nosnilmot caught this. Index: nmcontact.c =================================================================== RCS file: /cvsroot/gaim/gaim/src/protocols/novell/nmcontact.c,v retrieving revision 1.3 retrieving revision 1.4 diff -u -d -p -r1.3 -r1.4 --- nmcontact.c 23 Apr 2004 06:14:15 -0000 1.3 +++ nmcontact.c 23 Apr 2004 15:02:39 -0000 1.4 @@ -701,11 +701,13 @@ nm_folder_add_folder_to_list(NMFolder * 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); |