dovecot-1.2: Maildir: Fix to earlier >26 keywords handling change.

dovecot at dovecot.org dovecot at dovecot.org
Thu Jan 15 23:24:02 EET 2009


details:   http://hg.dovecot.org/dovecot-1.2/rev/11e18a303661
changeset: 8636:11e18a303661
user:      Timo Sirainen <tss at iki.fi>
date:      Thu Jan 15 16:23:59 2009 -0500
description:
Maildir: Fix to earlier >26 keywords handling change.

diffstat:

1 file changed, 1 insertion(+), 1 deletion(-)
src/lib-storage/index/maildir/maildir-sync-index.c |    2 +-

diffs (12 lines):

diff -r c8f619c13d07 -r 11e18a303661 src/lib-storage/index/maildir/maildir-sync-index.c
--- a/src/lib-storage/index/maildir/maildir-sync-index.c	Thu Jan 15 16:22:04 2009 -0500
+++ b/src/lib-storage/index/maildir/maildir-sync-index.c	Thu Jan 15 16:23:59 2009 -0500
@@ -338,7 +338,7 @@ maildir_sync_mail_keywords(struct maildi
 	   ones. we can get these lists easily by removing common elements
 	   from old and new keywords. */
 	new_indexes = array_get_modifiable(&ctx->keywords, &new_count);
-	for (i = 0; i < old_count && j < new_count; ) {
+	for (i = j = 0; i < old_count && j < new_count; ) {
 		diff = (int)old_indexes[i] - (int)new_indexes[j];
 		if (diff == 0) {
 			array_delete(&ctx->keywords, j, 1);


More information about the dovecot-cvs mailing list