]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
global: Use array_pop_back
authorAki Tuomi <aki.tuomi@open-xchange.com>
Fri, 11 Jan 2019 10:41:28 +0000 (12:41 +0200)
committerTimo Sirainen <timo.sirainen@open-xchange.com>
Tue, 2 Apr 2019 07:22:48 +0000 (10:22 +0300)
Re-run of 48c70592eb36b1263ad63e3c1dca8a0b5aff09ba due to
wrong spatch usage.

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

index 91eba5f1221891647f7da64ee4cad34b2b384bb1..cc817767b9d7803f9734db46595ef2f00a257e64 100644 (file)
@@ -788,8 +788,7 @@ mbox_sync_handle_missing_space(struct mbox_sync_mail_context *mail_ctx)
                        sync_ctx->expunged_space = 0;
                }
                last_seq = sync_ctx->seq - 1;
-               array_delete(&sync_ctx->mails,
-                            array_count(&sync_ctx->mails) - 1, 1);
+               array_pop_back(&sync_ctx->mails);
                end_offset = mail_ctx->mail.from_offset;
        } else {
                /* this message gave enough space from headers. rewriting stops