diff options
-rw-r--r-- | mail/ChangeLog | 5 | ||||
-rw-r--r-- | 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 <fejj@ximian.com> + + * mail-vfolder.c (mail_vfolder_remove_uri): replace my_list_find() + == NULL with my_list_find() != NULL. + 2001-10-01 Dan Winship <danw@ximian.com> * 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); } |