changeset 2418:f32a2fd0c8b4 HEAD

assert crashfix
author Timo Sirainen <tss@iki.fi>
date Sun, 15 Aug 2004 01:58:39 +0300
parents af0e73fc6658
children ba29613cbb19
files src/lib-index/mail-transaction-log-view.c
diffstat 1 files changed, 2 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/lib-index/mail-transaction-log-view.c	Mon Aug 09 23:13:35 2004 +0300
+++ b/src/lib-index/mail-transaction-log-view.c	Sun Aug 15 01:58:39 2004 +0300
@@ -157,7 +157,8 @@
 			return -1;
 	}
 
-	i_assert(max_file_offset <= file->sync_offset);
+	i_assert(max_file_offset == (uoff_t)-1 ||
+		 max_file_offset <= file->sync_offset);
 
 	/* we have all of them. update refcounts. */
 	if (view->tail->hdr.file_seq < first->hdr.file_seq) {