[dovecot-cvs] dovecot/src/lib-index mail-index-transaction.c, 1.62, 1.63

cras at dovecot.org cras at dovecot.org
Wed Jun 15 00:21:10 EEST 2005


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

Modified Files:
	mail-index-transaction.c 
Log Message:
Another empty-keyword-list fix with 64bit systems



Index: mail-index-transaction.c
===================================================================
RCS file: /var/lib/cvs/dovecot/src/lib-index/mail-index-transaction.c,v
retrieving revision 1.62
retrieving revision 1.63
diff -u -d -r1.62 -r1.63
--- mail-index-transaction.c	14 Jun 2005 21:17:06 -0000	1.62
+++ mail-index-transaction.c	14 Jun 2005 21:21:08 -0000	1.63
@@ -908,7 +908,7 @@
 	i_assert(keywords->count > 0 || modify_type == MODIFY_REPLACE);
 	i_assert(keywords->index == t->view->index);
 
-	if (!array_is_created(&t->keyword_updates)) {
+	if (!array_is_created(&t->keyword_updates) && keywords->count > 0) {
 		uint32_t max_idx = keywords->idx[keywords->count-1];
 
 		ARRAY_CREATE(&t->keyword_updates, default_pool,



More information about the dovecot-cvs mailing list