From: Federico Kircheis Date: Wed, 7 Mar 2018 19:40:23 +0000 (+0100) Subject: Reduce variable scope - mutt/rfc2047.c X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=79f9415fd9bae4e1d3b6fe3be7bc05ffa4d10d55;p=neomutt Reduce variable scope - mutt/rfc2047.c --- diff --git a/mutt/rfc2047.c b/mutt/rfc2047.c index 9c448745b..92a6bd48e 100644 --- a/mutt/rfc2047.c +++ b/mutt/rfc2047.c @@ -204,7 +204,6 @@ static size_t try_block(const char *d, size_t dlen, const char *fromcode, const char *tocode, encoder_t *encoder, size_t *wlen) { char buf[ENCWORD_LEN_MAX - ENCWORD_LEN_MIN + 1]; - iconv_t cd; const char *ib = NULL; char *ob = NULL; size_t ibl, obl; @@ -212,7 +211,7 @@ static size_t try_block(const char *d, size_t dlen, const char *fromcode, if (fromcode) { - cd = mutt_ch_iconv_open(tocode, fromcode, 0); + iconv_t cd = mutt_ch_iconv_open(tocode, fromcode, 0); assert(cd != (iconv_t)(-1)); ib = d; ibl = dlen;