Mercurial > dovecot > core-2.2
changeset 18350:e86211e8d728
dsync: Added an extra assert.
author | Timo Sirainen <tss@iki.fi> |
---|---|
date | Fri, 13 Mar 2015 20:05:03 +0200 |
parents | 6efdf22c96f1 |
children | b4dbe64c0032 |
files | src/doveadm/dsync/dsync-mailbox-export.c |
diffstat | 1 files changed, 2 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- 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);