dovecot-1.1: Added assert.

dovecot at dovecot.org dovecot at dovecot.org
Sun May 4 21:55:45 EEST 2008


details:   http://hg.dovecot.org/dovecot-1.1/rev/9bef11f4faf6
changeset: 7488:9bef11f4faf6
user:      Timo Sirainen <tss at iki.fi>
date:      Sun May 04 21:54:27 2008 +0300
description:
Added assert.

diffstat:

1 file changed, 2 insertions(+)
src/lib-storage/index/mbox/istream-raw-mbox.c |    2 ++

diffs (12 lines):

diff -r 6dfa085a49d6 -r 9bef11f4faf6 src/lib-storage/index/mbox/istream-raw-mbox.c
--- a/src/lib-storage/index/mbox/istream-raw-mbox.c	Sun May 04 21:54:03 2008 +0300
+++ b/src/lib-storage/index/mbox/istream-raw-mbox.c	Sun May 04 21:54:27 2008 +0300
@@ -634,6 +634,8 @@ void istream_raw_mbox_set_next_offset(st
 	struct raw_mbox_istream *rstream =
 		(struct raw_mbox_istream *)stream->real_stream;
 
+	i_assert(rstream->hdr_offset != (uoff_t)-1);
+
 	rstream->mail_size = offset - rstream->hdr_offset;
 }
 


More information about the dovecot-cvs mailing list