Mercurial > dovecot > core-2.2
changeset 2087:a11f8fa33848 HEAD
added assert
author | Timo Sirainen <tss@iki.fi> |
---|---|
date | Sun, 30 May 2004 07:35:06 +0300 |
parents | 5c851ff00f1a |
children | 4d0834aaa365 |
files | src/lib-index/mail-transaction-log-view.c |
diffstat | 1 files changed, 3 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/src/lib-index/mail-transaction-log-view.c Sun May 30 07:32:36 2004 +0300 +++ b/src/lib-index/mail-transaction-log-view.c Sun May 30 07:35:06 2004 +0300 @@ -118,6 +118,9 @@ i_assert(min_file_offset >= sizeof(struct mail_transaction_log_header)); i_assert(max_file_offset >= sizeof(struct mail_transaction_log_header)); + i_assert(min_file_seq != max_file_seq || + min_file_offset <= max_file_offset); + end_offset = min_file_seq == max_file_seq ? max_file_offset : (uoff_t)-1; ret = mail_transaction_log_file_map(file, min_file_offset, end_offset);