[dovecot-cvs] dovecot/src/lib-storage/index/maildir maildir-save.c, 1.70.2.4, 1.70.2.5

tss at dovecot.org tss at dovecot.org
Mon Jan 22 15:21:14 UTC 2007


Update of /var/lib/cvs/dovecot/src/lib-storage/index/maildir
In directory talvi:/tmp/cvs-serv5547/lib-storage/index/maildir

Modified Files:
      Tag: branch_1_0
	maildir-save.c 
Log Message:
Added asserts



Index: maildir-save.c
===================================================================
RCS file: /var/lib/cvs/dovecot/src/lib-storage/index/maildir/maildir-save.c,v
retrieving revision 1.70.2.4
retrieving revision 1.70.2.5
diff -u -d -r1.70.2.4 -r1.70.2.5
--- maildir-save.c	28 Dec 2006 16:07:15 -0000	1.70.2.4
+++ maildir-save.c	22 Jan 2007 15:21:11 -0000	1.70.2.5
@@ -485,6 +485,7 @@
 		sync_commit = TRUE;
 
 		first_uid = maildir_uidlist_get_next_uid(ctx->mbox->uidlist);
+		i_assert(first_uid != 0);
 		mail_index_append_assign_uids(ctx->trans, first_uid, &last_uid);
 	}
 



More information about the dovecot-cvs mailing list