changeset 8636:11e18a303661 HEAD

Maildir: Fix to earlier >26 keywords handling change.
author Timo Sirainen <tss@iki.fi>
date Thu, 15 Jan 2009 16:23:59 -0500
parents c8f619c13d07
children 557cc9cf7d5f
files src/lib-storage/index/maildir/maildir-sync-index.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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 @@
 	   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);