dovecot-1.1: Added assert.

dovecot at dovecot.org dovecot at dovecot.org
Sun Aug 31 11:50:34 EEST 2008


details:   http://hg.dovecot.org/dovecot-1.1/rev/74f729acbf55
changeset: 7851:74f729acbf55
user:      Timo Sirainen <tss at iki.fi>
date:      Sun Aug 31 11:46:53 2008 +0300
description:
Added assert.

diffstat:

1 file changed, 1 insertion(+)
src/lib-storage/index/maildir/maildir-save.c |    1 +

diffs (11 lines):

diff -r fd54c5a0e6c8 -r 74f729acbf55 src/lib-storage/index/maildir/maildir-save.c
--- a/src/lib-storage/index/maildir/maildir-save.c	Sun Aug 31 11:46:43 2008 +0300
+++ b/src/lib-storage/index/maildir/maildir-save.c	Sun Aug 31 11:46:53 2008 +0300
@@ -238,6 +238,7 @@ maildir_get_updated_filename(struct mail
 		return FALSE;
 	}
 
+	i_assert(ctx->keywords_sync_ctx != NULL || mf->keywords_count == 0);
 	buffer_update_const_data(ctx->keywords_buffer, mf + 1,
 				 mf->keywords_count * sizeof(unsigned int));
 	*fname_r = maildir_filename_set_flags(ctx->keywords_sync_ctx, basename,


More information about the dovecot-cvs mailing list