]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
mbox: Remove unnecessary check from assert - move_diff is always negative here
authorTimo Sirainen <timo.sirainen@dovecot.fi>
Thu, 5 Oct 2017 10:17:59 +0000 (13:17 +0300)
committerTimo Sirainen <tss@dovecot.fi>
Thu, 5 Oct 2017 11:31:38 +0000 (14:31 +0300)
src/lib-storage/index/mbox/mbox-sync.c

index e5c8fef3db68191bbef42a35c97f4134cf934fd3..fd09d2133cd945fb609f1bb8c5f9d3e46cf83a67 100644 (file)
@@ -673,8 +673,7 @@ static int mbox_sync_handle_header(struct mbox_sync_mail_context *mail_ctx)
                if (ret > 0) {
                        /* rewrite successful, write From-line to
                           new location */
-                       i_assert(move_diff > 0 ||
-                                (off_t)mail_ctx->mail.from_offset >=
+                       i_assert((off_t)mail_ctx->mail.from_offset >=
                                 -move_diff);
                        mail_ctx->mail.from_offset += move_diff;
                        mail_ctx->mail.offset += move_diff;