]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
Maildir: Fix to earlier >26 keywords handling change.
authorTimo Sirainen <tss@iki.fi>
Thu, 15 Jan 2009 21:23:59 +0000 (16:23 -0500)
committerTimo Sirainen <tss@iki.fi>
Thu, 15 Jan 2009 21:23:59 +0000 (16:23 -0500)
--HG--
branch : HEAD

src/lib-storage/index/maildir/maildir-sync-index.c

index 3c03b8c48596f27fbf47077a27570c8421e6ef1e..62604fc272e3436a8827283f269575df3a0eac8d 100644 (file)
@@ -338,7 +338,7 @@ maildir_sync_mail_keywords(struct maildir_index_sync_context *ctx, uint32_t seq)
           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);