From: Aki Tuomi Date: Mon, 21 May 2018 16:38:29 +0000 (+0300) Subject: lib-storage: maildir - Remove unnecessary variable X-Git-Tag: 2.3.2.rc1~61 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=755a4fe7cc390287a023f079570ab6037c406bec;p=thirdparty%2Fdovecot%2Fcore.git lib-storage: maildir - Remove unnecessary variable --- diff --git a/src/lib-storage/index/maildir/maildir-save.c b/src/lib-storage/index/maildir/maildir-save.c index 3aac4f772f..718ac39bbd 100644 --- a/src/lib-storage/index/maildir/maildir-save.c +++ b/src/lib-storage/index/maildir/maildir-save.c @@ -146,7 +146,6 @@ maildir_save_add(struct mail_save_context *_ctx, const char *tmp_fname, struct mail_save_data *mdata = &_ctx->data; struct maildir_filename *mf; struct istream *input; - unsigned int keyword_count; i_assert(*tmp_fname != '\0'); @@ -161,8 +160,6 @@ maildir_save_add(struct mail_save_context *_ctx, const char *tmp_fname, /* now, we want to be able to rollback the whole append session, so we'll just store the name of this temp file and move it later into new/ or cur/. */ - /* @UNSAFE */ - keyword_count = mdata->keywords == NULL ? 0 : mdata->keywords->count; mf = p_new(ctx->pool, struct maildir_filename, 1); mf->tmp_name = mf->dest_basename = p_strdup(ctx->pool, tmp_fname); mf->flags = mdata->flags;