dovecot-2.0: mail_search_args_init(): Added an assert.

dovecot at dovecot.org dovecot at dovecot.org
Tue Sep 29 01:26:14 EEST 2009


details:   http://hg.dovecot.org/dovecot-2.0/rev/92463a3c3af4
changeset: 9943:92463a3c3af4
user:      Timo Sirainen <tss at iki.fi>
date:      Mon Sep 28 18:25:22 2009 -0400
description:
mail_search_args_init(): Added an assert.

diffstat:

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

diffs (12 lines):

diff -r a22c9e8a01ae -r 92463a3c3af4 src/lib-storage/mail-search.c
--- a/src/lib-storage/mail-search.c	Mon Sep 28 16:26:44 2009 -0400
+++ b/src/lib-storage/mail-search.c	Mon Sep 28 18:25:22 2009 -0400
@@ -125,6 +125,8 @@ void mail_search_args_init(struct mail_s
 			   struct mailbox *box, bool change_uidsets,
 			   const ARRAY_TYPE(seq_range) *search_saved_uidset)
 {
+	i_assert(args->init_refcount <= args->refcount);
+
 	if (args->init_refcount++ > 0) {
 		i_assert(args->box == box);
 		return;


More information about the dovecot-cvs mailing list