From: Timo Sirainen Date: Thu, 30 May 2013 16:03:05 +0000 (+0300) Subject: lib-index: Fixed a broken assert. X-Git-Tag: 2.2.3~97 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=8ea491aa28c684d283d5fa62fee8a13a55cebd7b;p=thirdparty%2Fdovecot%2Fcore.git lib-index: Fixed a broken assert. --- diff --git a/src/lib-index/mail-index-transaction-export.c b/src/lib-index/mail-index-transaction-export.c index f890752cfe..44fe5e3241 100644 --- a/src/lib-index/mail-index-transaction-export.c +++ b/src/lib-index/mail-index-transaction-export.c @@ -113,7 +113,7 @@ static void log_append_ext_intro(struct mail_index_export_context *ctx, /* 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));