[dovecot-cvs]
dovecot/src/lib-storage/index/mbox mbox-sync.c, 1.134, 1.135
cras at dovecot.org
cras at dovecot.org
Wed Dec 29 21:09:23 EET 2004
Update of /var/lib/cvs/dovecot/src/lib-storage/index/mbox
In directory talvi:/tmp/cvs-serv29212/lib-storage/index/mbox
Modified Files:
mbox-sync.c
Log Message:
Added assert
Index: mbox-sync.c
===================================================================
RCS file: /var/lib/cvs/dovecot/src/lib-storage/index/mbox/mbox-sync.c,v
retrieving revision 1.134
retrieving revision 1.135
diff -u -d -r1.134 -r1.135
--- mbox-sync.c 29 Dec 2004 16:28:31 -0000 1.134
+++ mbox-sync.c 29 Dec 2004 19:09:21 -0000 1.135
@@ -949,6 +949,7 @@
file_size = i_stream_get_size(sync_ctx->file_input);
i_assert(file_size >= sync_ctx->file_input->v_offset);
trailer_size = file_size - sync_ctx->file_input->v_offset;
+ i_assert(trailer_size <= 1);
if (sync_ctx->need_space_seq != 0) {
i_assert(sync_ctx->space_diff < 0);
More information about the dovecot-cvs
mailing list