]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
doveadm: Remove doveadm_mail_cmd_context::args
authorMarco Bettini <marco.bettini@open-xchange.com>
Fri, 6 May 2022 15:24:31 +0000 (15:24 +0000)
committerMarco Bettini <marco.bettini@open-xchange.com>
Wed, 1 Jun 2022 10:02:11 +0000 (10:02 +0000)
src/doveadm/doveadm-mail.c
src/doveadm/doveadm-mail.h

index 10b4d99114ac9728bc43aa26b19b27d6952491d7..9768b9c5019542b182d18920a7c375a633230b9e 100644 (file)
@@ -973,10 +973,7 @@ doveadm_cmd_ver2_to_mail_cmd_wrapper(struct doveadm_cmd_context *cctx)
        array_append_zero(&pargv);
        /* All the -parameters need to be included in full_args so that
           they're sent to doveadm-server. */
-       unsigned int args_pos = array_count(&full_args);
        array_append_array(&full_args, &pargv);
-
-       mctx->args = array_idx(&full_args, args_pos);
        mctx->full_args = array_front(&full_args);
 
        doveadm_mail_cmd_exec(mctx, wildcard_user);
index ebbbbd56bc74e3d1eacb6b597d06d8e6f15c29ff..691af6891bde20da75729ac06de8b2b9967b1295 100644 (file)
@@ -63,7 +63,6 @@ struct doveadm_mail_cmd_context {
        pool_t pool;
        struct doveadm_cmd_context *cctx;
        const struct doveadm_mail_cmd *cmd;
-       const char *const *args;
        /* args including -options */
        const char *const *full_args;