aboutsummaryrefslogtreecommitdiffstats
path: root/camel
diff options
context:
space:
mode:
authorDan Winship <danw@src.gnome.org>2000-10-26 05:36:09 +0800
committerDan Winship <danw@src.gnome.org>2000-10-26 05:36:09 +0800
commit76d0cad905e5cd00d5500a3e74a3c7d1d3fd8136 (patch)
treee12a5b5db8fac39857e9777bfb835ef245c3dbc5 /camel
parent1c81f56fdefa6412bd1f3ae5f36ad3f872e25ce7 (diff)
downloadgsoc2013-evolution-76d0cad905e5cd00d5500a3e74a3c7d1d3fd8136.tar.gz
gsoc2013-evolution-76d0cad905e5cd00d5500a3e74a3c7d1d3fd8136.tar.zst
gsoc2013-evolution-76d0cad905e5cd00d5500a3e74a3c7d1d3fd8136.zip
Fix folder listing code infinite loop.
* providers/imap/camel-imap-store.c (get_folder_info): Fix folder listing code infinite loop. svn path=/trunk/; revision=6178
Diffstat (limited to 'camel')
-rw-r--r--camel/ChangeLog3
-rw-r--r--camel/providers/imap/camel-imap-store.c2
2 files changed, 4 insertions, 1 deletions
diff --git a/camel/ChangeLog b/camel/ChangeLog
index 822cea90a2..e370ada00c 100644
--- a/camel/ChangeLog
+++ b/camel/ChangeLog
@@ -1,5 +1,8 @@
2000-10-25 Dan Winship <danw@helixcode.com>
+ * providers/imap/camel-imap-store.c (get_folder_info): Fix folder
+ listing code infinite loop.
+
* camel-store.h: Add a "parent" field to CamelFolderInfo.
* camel-store.c (camel_folder_info_build): Deal with "parent"
diff --git a/camel/providers/imap/camel-imap-store.c b/camel/providers/imap/camel-imap-store.c
index f0ea3c0aec..43357a4326 100644
--- a/camel/providers/imap/camel-imap-store.c
+++ b/camel/providers/imap/camel-imap-store.c
@@ -675,7 +675,7 @@ get_folder_info (CamelStore *store, const char *top, gboolean fast,
topfi = topfi->child;
fi->child = NULL;
camel_folder_info_free (fi);
- for (fi = topfi; fi; fi->sibling)
+ for (fi = topfi; fi; fi = fi->sibling)
fi->parent = NULL;
}