Mercurial > dovecot > original-hg > dovecot-1.2
changeset 2919:3cc0a992ac7d HEAD
Added assert
author | Timo Sirainen <tss@iki.fi> |
---|---|
date | Mon, 29 Nov 2004 19:35:45 +0200 |
parents | 7039fc53b4c8 |
children | 9b772db4503d |
files | src/lib-index/mail-index-sync-update.c |
diffstat | 1 files changed, 1 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/src/lib-index/mail-index-sync-update.c Mon Nov 29 19:22:40 2004 +0200 +++ b/src/lib-index/mail-index-sync-update.c Mon Nov 29 19:35:45 2004 +0200 @@ -521,6 +521,7 @@ new_map->records = buffer_get_modifyable_data(new_map->buffer, NULL); new_map->records_count = old_records_count; + i_assert(new_map->records_count == new_map->hdr.messages_count); /* update record offsets in headers */ for (i = 0; i < size; i++) {