[evolution-data-server] IMAPX: Don't pass GError when not checking for error.



commit 3f40ff345f8c0787c015a0b2dcb3be051eb0104d
Author: Matthew Barnes <mbarnes redhat com>
Date:   Wed Aug 14 13:10:51 2013 -0400

    IMAPX: Don't pass GError when not checking for error.
    
    Error checking around CamelDB and CamelFolderSummary calls are virtually
    non-existent, but that's a mess for another day.  In the meantime, avoid
    blindly passing GErrors where we don't bother checking for errors, since
    that leads to GError overwrite warnings.

 camel/camel-imapx-server.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/camel/camel-imapx-server.c b/camel/camel-imapx-server.c
index 4e01729..39cba6b 100644
--- a/camel/camel-imapx-server.c
+++ b/camel/camel-imapx-server.c
@@ -5906,7 +5906,7 @@ imapx_command_expunge_done (CamelIMAPXServer *is,
                parent_store = camel_folder_get_parent_store (folder);
 
                camel_folder_summary_save_to_db (folder->summary, NULL);
-               uids = camel_db_get_folder_deleted_uids (parent_store->cdb_r, full_name, error);
+               uids = camel_db_get_folder_deleted_uids (parent_store->cdb_r, full_name, NULL);
 
                if (uids && uids->len)  {
                        CamelFolderChangeInfo *changes;
@@ -6654,7 +6654,7 @@ imapx_command_sync_changes_done (CamelIMAPXServer *is,
                        }
                }
 
-               camel_folder_summary_save_to_db (folder->summary, error);
+               camel_folder_summary_save_to_db (folder->summary, NULL);
                camel_store_summary_save ((CamelStoreSummary *)((CamelIMAPXStore *) parent_store)->summary);
 
                imapx_unregister_job (is, job);


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]