dovecot-1.2: Added assert.

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


details:   http://hg.dovecot.org/dovecot-1.2/rev/11f07916003a
changeset: 8133:11f07916003a
user:      Timo Sirainen <tss at iki.fi>
date:      Sun Aug 31 11:47:07 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 66dd5f452d32 -r 11f07916003a src/lib-storage/index/maildir/maildir-save.c
--- a/src/lib-storage/index/maildir/maildir-save.c	Sun Aug 31 11:46:22 2008 +0300
+++ b/src/lib-storage/index/maildir/maildir-save.c	Sun Aug 31 11:47:07 2008 +0300
@@ -237,6 +237,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