From: Aki Tuomi Date: Fri, 11 Jan 2019 10:41:28 +0000 (+0200) Subject: global: Use array_pop_back X-Git-Tag: 2.3.6~16 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=91bee5a4d3d84b02672e581e8f0b9411aa69bd01;p=thirdparty%2Fdovecot%2Fcore.git global: Use array_pop_back Re-run of 48c70592eb36b1263ad63e3c1dca8a0b5aff09ba due to wrong spatch usage. --- diff --git a/src/lib-storage/index/mbox/mbox-sync.c b/src/lib-storage/index/mbox/mbox-sync.c index 91eba5f122..cc817767b9 100644 --- a/src/lib-storage/index/mbox/mbox-sync.c +++ b/src/lib-storage/index/mbox/mbox-sync.c @@ -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