From 29bf2715b816f7e310ba5a44891e82aaaa02e2f5 Mon Sep 17 00:00:00 2001 From: Jeffrey Stedfast Date: Mon, 1 Oct 2001 22:02:20 +0000 Subject: replace my_list_find() == NULL with my_list_find() != NULL. 2001-10-01 Jeffrey Stedfast * mail-vfolder.c (mail_vfolder_remove_uri): replace my_list_find() == NULL with my_list_find() != NULL. svn path=/trunk/; revision=13282 --- mail/ChangeLog | 5 +++++ mail/mail-vfolder.c | 4 ++-- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/mail/ChangeLog b/mail/ChangeLog index 8351b96703..b00ce73157 100644 --- a/mail/ChangeLog +++ b/mail/ChangeLog @@ -1,3 +1,8 @@ +2001-10-01 Jeffrey Stedfast + + * mail-vfolder.c (mail_vfolder_remove_uri): replace my_list_find() + == NULL with my_list_find() != NULL. + 2001-10-01 Dan Winship * component-factory.c (mail_load_storage_by_uri): create storages diff --git a/mail/mail-vfolder.c b/mail/mail-vfolder.c index 185a2e92c2..4bb56e8983 100644 --- a/mail/mail-vfolder.c +++ b/mail/mail-vfolder.c @@ -367,12 +367,12 @@ mail_vfolder_remove_uri(CamelStore *store, const char *uri) /* maintain remote/local lists */ if (remote) { - if ((link = my_list_find(source_folders_remote, (void *)uri, uri_cmp)) == NULL) { + if ((link = my_list_find(source_folders_remote, (void *)uri, uri_cmp)) != NULL) { g_free(link->data); source_folders_remote = g_list_remove_link(source_folders_remote, link); } } else { - if ((link = my_list_find(source_folders_local, (void *)uri, uri_cmp)) == NULL) { + if ((link = my_list_find(source_folders_local, (void *)uri, uri_cmp)) != NULL) { g_free(link->data); source_folders_local = g_list_remove_link(source_folders_local, link); } -- cgit v1.2.3