aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJeffrey Stedfast <fejj@ximian.com>2001-10-02 06:02:20 +0800
committerJeffrey Stedfast <fejj@src.gnome.org>2001-10-02 06:02:20 +0800
commit29bf2715b816f7e310ba5a44891e82aaaa02e2f5 (patch)
tree4b67a1df2c333156e8294f8ec951381a4673f518
parent37af98188c94b614dcc54211bca1f7448f04cbd0 (diff)
downloadgsoc2013-evolution-29bf2715b816f7e310ba5a44891e82aaaa02e2f5.tar
gsoc2013-evolution-29bf2715b816f7e310ba5a44891e82aaaa02e2f5.tar.gz
gsoc2013-evolution-29bf2715b816f7e310ba5a44891e82aaaa02e2f5.tar.bz2
gsoc2013-evolution-29bf2715b816f7e310ba5a44891e82aaaa02e2f5.tar.lz
gsoc2013-evolution-29bf2715b816f7e310ba5a44891e82aaaa02e2f5.tar.xz
gsoc2013-evolution-29bf2715b816f7e310ba5a44891e82aaaa02e2f5.tar.zst
gsoc2013-evolution-29bf2715b816f7e310ba5a44891e82aaaa02e2f5.zip
replace my_list_find() == NULL with my_list_find() != NULL.
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. svn path=/trunk/; revision=13282
-rw-r--r--mail/ChangeLog5
-rw-r--r--mail/mail-vfolder.c4
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);
}