From d50f28feefb8d07e80ec2db2ab7fb2dc270e84dc Mon Sep 17 00:00:00 2001 From: Federico Kircheis Date: Mon, 5 Mar 2018 18:55:45 +0100 Subject: [PATCH] Reduce variable scope - mutt_notmuch.c --- mutt_notmuch.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mutt_notmuch.c b/mutt_notmuch.c index 48878684963..52877944315 100644 --- a/mutt_notmuch.c +++ b/mutt_notmuch.c @@ -2301,7 +2301,6 @@ static int nm_sync_mailbox(struct Context *ctx, int *index_hint) { struct NmCtxData *data = get_ctxdata(ctx); int rc = 0; - char msgbuf[STRING]; struct Progress progress; char *uri = ctx->path; bool changed = false; @@ -2314,6 +2313,7 @@ static int nm_sync_mailbox(struct Context *ctx, int *index_hint) if (!ctx->quiet) { /* all is in this function so we don't use data->progress here */ + char msgbuf[STRING]; snprintf(msgbuf, sizeof(msgbuf), _("Writing %s..."), ctx->path); mutt_progress_init(&progress, msgbuf, MUTT_PROGRESS_MSG, WriteInc, ctx->msgcount); }