]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
Search: Added an assert.
authorTimo Sirainen <tss@iki.fi>
Sun, 17 May 2009 19:43:03 +0000 (15:43 -0400)
committerTimo Sirainen <tss@iki.fi>
Sun, 17 May 2009 19:43:03 +0000 (15:43 -0400)
--HG--
branch : HEAD

src/lib-storage/index/index-search.c

index 74fb7a92d1dcc77ab108cb5863aa0b24e944cd37..cffa857276f2f31afb9e540db8a6d245c18db1ee 100644 (file)
@@ -935,6 +935,9 @@ static int search_build_inthread_result(struct index_search_context *ctx,
        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,