diff options
author | Not Zed <NotZed@Ximian.com> | 2001-07-25 10:15:05 +0800 |
---|---|---|
committer | Michael Zucci <zucchi@src.gnome.org> | 2001-07-25 10:15:05 +0800 |
commit | fc49986ee1e24c28eced9cdff1813ea34ee68755 (patch) | |
tree | 7691f0a01612fb74ec3104767741220508dec080 /camel/camel-folder.c | |
parent | b834d6590e8f93b21f4d07edc0d666a6c9035473 (diff) | |
download | gsoc2013-evolution-fc49986ee1e24c28eced9cdff1813ea34ee68755.tar.gz gsoc2013-evolution-fc49986ee1e24c28eced9cdff1813ea34ee68755.tar.zst gsoc2013-evolution-fc49986ee1e24c28eced9cdff1813ea34ee68755.zip |
Change the break into a continue, we should process as many as we can
2001-07-24 Not Zed <NotZed@Ximian.com>
* providers/imap/camel-imap-folder.c (camel_imap_folder_changed):
Change the break into a continue, we should process as many as we
can find.
* camel-folder.c (camel_folder_move_messages_to): If we have no
uid's to copy, exit here before going any further. Some code
internally [imap] assumes there are uids to copy otherwise it can
segfault.
(camel_folder_copy_messages_to): Same.
svn path=/trunk/; revision=11392
Diffstat (limited to 'camel/camel-folder.c')
-rw-r--r-- | camel/camel-folder.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/camel/camel-folder.c b/camel/camel-folder.c index 2326fb6300..ca40c8b0dc 100644 --- a/camel/camel-folder.c +++ b/camel/camel-folder.c @@ -1147,8 +1147,8 @@ camel_folder_copy_messages_to (CamelFolder *source, GPtrArray *uids, g_return_if_fail (CAMEL_IS_FOLDER (dest)); g_return_if_fail (uids != NULL); - if (source == dest) { - /* source and destination folders are the same, do nothing. */ + if (source == dest || uids->len == 0) { + /* source and destination folders are the same, or no work to do, do nothing. */ return; } @@ -1228,8 +1228,8 @@ camel_folder_move_messages_to (CamelFolder *source, GPtrArray *uids, g_return_if_fail (CAMEL_IS_FOLDER (dest)); g_return_if_fail (uids != NULL); - if (source == dest) { - /* source and destination folders are the same, nothing to do. */ + if (source == dest || uids->len == 0) { + /* source and destination folders are the same, or no work to do, nothing to do. */ return; } |