dovecot-2.2: dsync: Added an extra assert.

dovecot at dovecot.org dovecot at dovecot.org
Fri Mar 13 18:09:39 UTC 2015


details:   http://hg.dovecot.org/dovecot-2.2/rev/e86211e8d728
changeset: 18350:e86211e8d728
user:      Timo Sirainen <tss at iki.fi>
date:      Fri Mar 13 20:05:03 2015 +0200
description:
dsync: Added an extra assert.

diffstat:

 src/doveadm/dsync/dsync-mailbox-export.c |  3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diffs (20 lines):

diff -r 6efdf22c96f1 -r e86211e8d728 src/doveadm/dsync/dsync-mailbox-export.c
--- a/src/doveadm/dsync/dsync-mailbox-export.c	Fri Mar 13 20:03:27 2015 +0200
+++ b/src/doveadm/dsync/dsync-mailbox-export.c	Fri Mar 13 20:05:03 2015 +0200
@@ -353,7 +353,7 @@
 	struct mail *mail;
 	enum mail_fetch_field wanted_fields = 0;
 	struct mailbox_header_lookup_ctx *wanted_headers = NULL;
-	int ret;
+	int ret = 0;
 
 	search_args = mail_search_build_init();
 	sarg = mail_search_build_add(search_args, SEARCH_UIDSET);
@@ -395,6 +395,7 @@
 		if (ret < 0)
 			break;
 	}
+	i_assert(ret >= 0 || exporter->error != NULL);
 
 	dsync_mailbox_export_drop_expunged_flag_changes(exporter);
 


More information about the dovecot-cvs mailing list