]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
doveadm: Call mailbox_set_reason with initialized mailbox
authorMartti Rannanjärvi <martti.rannanjarvi@dovecot.fi>
Mon, 3 Apr 2017 08:41:29 +0000 (11:41 +0300)
committerTimo Sirainen <timo.sirainen@dovecot.fi>
Mon, 3 Apr 2017 11:00:05 +0000 (14:00 +0300)
src/doveadm/doveadm-mail-import.c

index 302401e548a202b3283605e6353032ea5098b487..494723a34ea20180170dcf15072a738c9890f932 100644 (file)
@@ -63,7 +63,7 @@ dest_mailbox_open_or_create(struct import_cmd_context *ctx,
        }
 
        box = mailbox_alloc(ns->list, name, MAILBOX_FLAG_SAVEONLY);
-       mailbox_set_reason(*box_r, ctx->ctx.cmd->name);
+       mailbox_set_reason(box, ctx->ctx.cmd->name);
        if (mailbox_create(box, NULL, FALSE) < 0) {
                errstr = mailbox_get_last_internal_error(box, &error);
                if (error != MAIL_ERROR_EXISTS) {