dovecot-1.2: Search: Added an assert.

dovecot at dovecot.org dovecot at dovecot.org
Sun May 17 22:43:59 EEST 2009


details:   http://hg.dovecot.org/dovecot-1.2/rev/b77fbbee8749
changeset: 9034:b77fbbee8749
user:      Timo Sirainen <tss at iki.fi>
date:      Sun May 17 15:43:03 2009 -0400
description:
Search: Added an assert.

diffstat:

1 file changed, 3 insertions(+)
src/lib-storage/index/index-search.c |    3 +++

diffs (13 lines):

diff -r e3ee0a4c0b58 -r b77fbbee8749 src/lib-storage/index/index-search.c
--- a/src/lib-storage/index/index-search.c	Sun May 17 15:42:23 2009 -0400
+++ b/src/lib-storage/index/index-search.c	Sun May 17 15:43:03 2009 -0400
@@ -935,6 +935,9 @@ static int search_build_inthread_result(
 	ARRAY_TYPE(seq_range) thread_uids;
 	int ret = 0;
 
+	/* mail_search_args_init() must have been called by now */
+	i_assert(arg->value.search_args != NULL);
+
 	p_array_init(&arg->value.seqset, ctx->mail_ctx.args->pool, 64);
 	if (mailbox_search_result_build(ctx->mail_ctx.transaction,
 					arg->value.search_args,


More information about the dovecot-cvs mailing list