dovecot-2.2: lib-index: Fixed a broken assert.

dovecot at dovecot.org dovecot at dovecot.org
Thu May 30 19:03:15 EEST 2013


details:   http://hg.dovecot.org/dovecot-2.2/rev/528c64739e39
changeset: 16426:528c64739e39
user:      Timo Sirainen <tss at iki.fi>
date:      Thu May 30 19:03:05 2013 +0300
description:
lib-index: Fixed a broken assert.

diffstat:

 src/lib-index/mail-index-transaction-export.c |  2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diffs (12 lines):

diff -r fc2ba01feb78 -r 528c64739e39 src/lib-index/mail-index-transaction-export.c
--- a/src/lib-index/mail-index-transaction-export.c	Thu May 30 18:04:58 2013 +0300
+++ b/src/lib-index/mail-index-transaction-export.c	Thu May 30 19:03:05 2013 +0300
@@ -113,7 +113,7 @@
 		/* we're resizing the extension. use the resize struct. */
 		intro = &resizes[ext_id];
 
-		i_assert(intro->ext_id == idx);
+		i_assert(intro->ext_id == idx || idx == (uint32_t)-1);
 		intro->name_size = idx != (uint32_t)-1 ? 0 :
 			strlen(rext->name);
 		buffer_append(buf, intro, sizeof(*intro));


More information about the dovecot-cvs mailing list