]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
lib-index: Fixed a broken assert.
authorTimo Sirainen <tss@iki.fi>
Thu, 30 May 2013 16:03:05 +0000 (19:03 +0300)
committerTimo Sirainen <tss@iki.fi>
Thu, 30 May 2013 16:03:05 +0000 (19:03 +0300)
src/lib-index/mail-index-transaction-export.c

index f890752cfef0cf62f942877155e22f4e4d3d19b0..44fe5e32415c734a53be56d9e862643d328f077a 100644 (file)
@@ -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));