]> granicus.if.org Git - neomutt/commitdiff
Reduce variable scope - mutt/rfc2047.c
authorFederico Kircheis <federico.kircheis@gmail.com>
Wed, 7 Mar 2018 19:40:23 +0000 (20:40 +0100)
committerRichard Russon <rich@flatcap.org>
Thu, 8 Mar 2018 02:27:14 +0000 (02:27 +0000)
mutt/rfc2047.c

index 9c448745be45ea2129789e9da4b60cc1c7c246da..92a6bd48e10d4039b4164fbe0749cfbedfd69524 100644 (file)
@@ -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;