Skip to content

Commit

Permalink
lib-index: Fixed somewhat random assert-crashes during extension resi…
Browse files Browse the repository at this point in the history
…zes.
  • Loading branch information
sirainen committed May 28, 2014
1 parent dfdd228 commit b886421
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/lib-index/mail-index-transaction-export.c
Expand Up @@ -114,10 +114,10 @@ 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 || idx == (uint32_t)-1);
if (idx != (uint32_t)-1)
if (idx != (uint32_t)-1) {
intro->ext_id = idx;
intro->name_size = 0;
else {
} else {
intro->ext_id = (uint32_t)-1;
intro->name_size = strlen(rext->name);
}
Expand Down

0 comments on commit b886421

Please sign in to comment.