[dovecot-cvs] dovecot/src/lib-index mail-index-transaction.c, 1.23, 1.24

cras at dovecot.org cras at dovecot.org
Sat Sep 11 21:14:26 EEST 2004


Update of /var/lib/cvs/dovecot/src/lib-index
In directory talvi:/tmp/cvs-serv31188/lib-index

Modified Files:
	mail-index-transaction.c 
Log Message:
added assert



Index: mail-index-transaction.c
===================================================================
RCS file: /var/lib/cvs/dovecot/src/lib-index/mail-index-transaction.c,v
retrieving revision 1.23
retrieving revision 1.24
diff -u -d -r1.23 -r1.24
--- mail-index-transaction.c	11 Sep 2004 18:13:00 -0000	1.23
+++ mail-index-transaction.c	11 Sep 2004 18:14:24 -0000	1.24
@@ -96,6 +96,7 @@
 				rec = mail_index_transaction_lookup(t, *seq);
 				*seq = rec->uid;
 			} else {
+				i_assert(*seq <= view->map->records_count);
 				*seq = MAIL_INDEX_MAP_IDX(view->map,
 							  *seq - 1)->uid;
 			}



More information about the dovecot-cvs mailing list