X-Git-Url: http://git.marmaro.de/?p=mmh;a=blobdiff_plain;f=sbr%2Ffmt_rfc2047.c;fp=sbr%2Ffmt_rfc2047.c;h=7013ceab8bd63f32887ae6eae22d7de83cc313a2;hp=83ef21eb2c8ef89901386dc7d36231f797197d66;hb=8e0d377cb731b0fbc39a9b2874ec6b772e53620b;hpb=7e669f1b5d51b1d562efd79ef04b8441574c0334 diff --git a/sbr/fmt_rfc2047.c b/sbr/fmt_rfc2047.c index 83ef21e..7013cea 100644 --- a/sbr/fmt_rfc2047.c +++ b/sbr/fmt_rfc2047.c @@ -200,8 +200,10 @@ decode_rfc2047 (char *str, char *dst, size_t dstlen) * empty encoded text. This ensures that we don't * malloc 0 bytes but skip on to the end */ - if (endofmime == startofmime) + if (endofmime == startofmime) { use_iconv = 0; + iconv_close(cd); + } if (use_iconv) { saveq = q;