aboutsummaryrefslogtreecommitdiffstats
path: root/camel/providers/local
diff options
context:
space:
mode:
authorNot Zed <NotZed@Ximian.com>2001-01-23 11:25:03 +0800
committerMichael Zucci <zucchi@src.gnome.org>2001-01-23 11:25:03 +0800
commit96be0c50f7dde84249db1194e69e8b146afc0687 (patch)
tree0dc092e539dcf3415b4edb6f8e0a4c1027504d7e /camel/providers/local
parent096f54cfa0d3ec4916c3c27038ce2d609b5edbd0 (diff)
downloadgsoc2013-evolution-96be0c50f7dde84249db1194e69e8b146afc0687.tar
gsoc2013-evolution-96be0c50f7dde84249db1194e69e8b146afc0687.tar.gz
gsoc2013-evolution-96be0c50f7dde84249db1194e69e8b146afc0687.tar.bz2
gsoc2013-evolution-96be0c50f7dde84249db1194e69e8b146afc0687.tar.lz
gsoc2013-evolution-96be0c50f7dde84249db1194e69e8b146afc0687.tar.xz
gsoc2013-evolution-96be0c50f7dde84249db1194e69e8b146afc0687.tar.zst
gsoc2013-evolution-96be0c50f7dde84249db1194e69e8b146afc0687.zip
Removed some debug 'warnings', as they should now be displayed at the
2001-01-23 Not Zed <NotZed@Ximian.com> * providers/imap/camel-imap-summary.c (message_info_load): Removed some debug 'warnings', as they should now be displayed at the toplevel loader, and just made the code match similar code elsewhere. * providers/local/camel-mbox-summary.c (message_info_load): Error handling. (message_info_save): more error handling. * camel-folder-summary.c (message_info_load): Add error handling and sanity checking. (camel_folder_summary_load): Add error checks. (perform_content_info_load): Error + sanity checks. (content_info_load): error + sanity checks. svn path=/trunk/; revision=7737
Diffstat (limited to 'camel/providers/local')
-rw-r--r--camel/providers/local/camel-mbox-summary.c14
1 files changed, 10 insertions, 4 deletions
diff --git a/camel/providers/local/camel-mbox-summary.c b/camel/providers/local/camel-mbox-summary.c
index 5b62743857..ab42e10df7 100644
--- a/camel/providers/local/camel-mbox-summary.c
+++ b/camel/providers/local/camel-mbox-summary.c
@@ -197,11 +197,15 @@ message_info_load(CamelFolderSummary *s, FILE *in)
mi = ((CamelFolderSummaryClass *)camel_mbox_summary_parent)->message_info_load(s, in);
if (mi) {
CamelMboxMessageInfo *mbi = (CamelMboxMessageInfo *)mi;
-
- camel_folder_summary_decode_off_t(in, &mbi->frompos);
+
+ if (camel_folder_summary_decode_off_t(in, &mbi->frompos) == -1)
+ goto error;
}
return mi;
+error:
+ camel_folder_summary_info_free(s, mi);
+ return NULL;
}
static int
@@ -211,9 +215,11 @@ message_info_save(CamelFolderSummary *s, FILE *out, CamelMessageInfo *mi)
io(printf("saving mbox message info\n"));
- ((CamelFolderSummaryClass *)camel_mbox_summary_parent)->message_info_save(s, out, mi);
+ if (((CamelFolderSummaryClass *)camel_mbox_summary_parent)->message_info_save(s, out, mi) == -1
+ || camel_folder_summary_encode_off_t(out, mbi->frompos) == -1)
+ return -1;
- return camel_folder_summary_encode_off_t(out, mbi->frompos);
+ return 0;
}
static int