dovecot-2.0: Search: Added an assert.

dovecot at dovecot.org dovecot at dovecot.org
Sun May 17 22:44:05 EEST 2009


details:   http://hg.dovecot.org/dovecot-2.0/rev/34e4af1f5009
changeset: 9305:34e4af1f5009
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 58c240b45d24 -r 34e4af1f5009 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