From 52e914b644e0216134962017cbcd4d15056be340 Mon Sep 17 00:00:00 2001 From: Federico Kircheis Date: Fri, 2 Mar 2018 19:19:33 +0100 Subject: [PATCH] Reduce variable scope - filter.c --- filter.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/filter.c b/filter.c index 584f0d4163f..a286dbbb86d 100644 --- a/filter.c +++ b/filter.c @@ -57,7 +57,6 @@ pid_t mutt_create_filter_fd(const char *cmd, FILE **in, FILE **out, FILE **err, int fdin, int fdout, int fderr) { int pin[2], pout[2], perr[2], thepid; - char columns[11]; if (in) { @@ -144,6 +143,7 @@ pid_t mutt_create_filter_fd(const char *cmd, FILE **in, FILE **out, FILE **err, if (MuttIndexWindow && (MuttIndexWindow->cols > 0)) { + char columns[11]; snprintf(columns, sizeof(columns), "%d", MuttIndexWindow->cols); mutt_envlist_set("COLUMNS", columns, 1); }