[evolution-data-server] Bug #631290 - Crash in vee_folder_synchronize_sync
- From: Milan Crha <mcrha src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [evolution-data-server] Bug #631290 - Crash in vee_folder_synchronize_sync
- Date: Wed, 20 Oct 2010 12:26:42 +0000 (UTC)
commit 6e20d4a1a883a5d1bf80471790578e3e96461dc7
Author: Milan Crha <mcrha redhat com>
Date: Wed Oct 20 14:26:00 2010 +0200
Bug #631290 - Crash in vee_folder_synchronize_sync
camel/camel-vee-folder.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/camel/camel-vee-folder.c b/camel/camel-vee-folder.c
index 17c985c..9f4cdc4 100644
--- a/camel/camel-vee-folder.c
+++ b/camel/camel-vee-folder.c
@@ -1301,7 +1301,6 @@ vee_folder_synchronize_sync (CamelFolder *folder,
CamelVeeFolder *vf = (CamelVeeFolder *)folder;
CamelVeeFolderPrivate *p = CAMEL_VEE_FOLDER_GET_PRIVATE (vf);
GList *node;
- GError *local_error = NULL;
if (((CamelVeeSummary *)folder->summary)->fake_visible_count)
folder->summary->visible_count = ((CamelVeeSummary *)folder->summary)->fake_visible_count;
@@ -1311,10 +1310,11 @@ vee_folder_synchronize_sync (CamelFolder *folder,
node = p->folders;
while (node) {
+ GError *local_error = NULL;
CamelFolder *f = node->data;
if (!camel_folder_synchronize_sync (f, expunge, cancellable, &local_error)) {
- if (strncmp (local_error->message, "no such table", 13) != 0) {
+ if (local_error && strncmp (local_error->message, "no such table", 13) != 0 && error && !*error) {
const gchar *desc;
desc = camel_folder_get_description (f);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]