aboutsummaryrefslogtreecommitdiffstats
path: root/camel/providers/imap/camel-imap-store.c
diff options
context:
space:
mode:
authorPeter Williams <peterw@ximian.com>2002-07-17 04:39:08 +0800
committerPeter Williams <peterw@src.gnome.org>2002-07-17 04:39:08 +0800
commit5cb61aa42f97181881ca7d4586395f099c131228 (patch)
tree2ff550e84bfec0343e9bbea3c0f1443f41082eaa /camel/providers/imap/camel-imap-store.c
parent8535245dde06ffb9b5f9679ca9e5e5944fffc3e5 (diff)
downloadgsoc2013-evolution-5cb61aa42f97181881ca7d4586395f099c131228.tar
gsoc2013-evolution-5cb61aa42f97181881ca7d4586395f099c131228.tar.gz
gsoc2013-evolution-5cb61aa42f97181881ca7d4586395f099c131228.tar.bz2
gsoc2013-evolution-5cb61aa42f97181881ca7d4586395f099c131228.tar.lz
gsoc2013-evolution-5cb61aa42f97181881ca7d4586395f099c131228.tar.xz
gsoc2013-evolution-5cb61aa42f97181881ca7d4586395f099c131228.tar.zst
gsoc2013-evolution-5cb61aa42f97181881ca7d4586395f099c131228.zip
Clean up some improper usage of CamelExceptions (looking at
2002-07-16 Peter Williams <peterw@ximian.com> * providers/imap/camel-imap-folder.c (imap_sync_online): Clean up some improper usage of CamelExceptions (looking at camel_exception_is_set when ex = NULL). * providers/imap/camel-imap-store.c (get_folder_online): Here too. * providers/imap/camel-imap-message-cache.c (camel_imap_message_cache_new): Nothing sets the exception so don't bother to check it at the end of this function. Prevents a warning about checking a NULL exception's value. svn path=/trunk/; revision=17482
Diffstat (limited to 'camel/providers/imap/camel-imap-store.c')
-rw-r--r--camel/providers/imap/camel-imap-store.c9
1 files changed, 7 insertions, 2 deletions
diff --git a/camel/providers/imap/camel-imap-store.c b/camel/providers/imap/camel-imap-store.c
index f899168595..fbc6c39b31 100644
--- a/camel/providers/imap/camel-imap-store.c
+++ b/camel/providers/imap/camel-imap-store.c
@@ -1349,10 +1349,15 @@ get_folder_online (CamelStore *store, const char *folder_name,
new_folder = camel_imap_folder_new (store, folder_name, folder_dir, ex);
g_free (folder_dir);
if (new_folder) {
+ CamelException local_ex;
+
imap_store->current_folder = new_folder;
camel_object_ref (CAMEL_OBJECT (new_folder));
- camel_imap_folder_selected (new_folder, response, ex);
- if (camel_exception_is_set (ex)) {
+ camel_exception_init (&local_ex);
+ camel_imap_folder_selected (new_folder, response, &local_ex);
+
+ if (camel_exception_is_set (&local_ex)) {
+ camel_exception_xfer (ex, &local_ex);
camel_object_unref (CAMEL_OBJECT (imap_store->current_folder));
imap_store->current_folder = NULL;
camel_object_unref (CAMEL_OBJECT (new_folder));