[dovecot-cvs] dovecot/src/lib-storage/index/maildir maildir-save.c, 1.78, 1.79

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


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

Modified Files:
	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.78
retrieving revision 1.79
diff -u -d -r1.78 -r1.79
--- maildir-save.c	28 Dec 2006 16:07:19 -0000	1.78
+++ maildir-save.c	22 Jan 2007 15:21:15 -0000	1.79
@@ -514,6 +514,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