(void) m_backup (file);
}
}
+ if (outfp) {
+ /* close fp opened by the m_mktemp2() call in mhfixmsgsbr() */
+ fclose (outfp);
+ outfp = NULL;
+ }
}
} else {
status = 1;
switch (ct->c_type) {
case CT_TEXT:
if (ct->c_subtype == TEXT_PLAIN) {
+ char *const ct_charset = content_charset (ct);
+
status = convert_charset (ct, dest_charset, message_mods);
if (status == OK) {
if (verbosw) {
- char *ct_charset = content_charset (ct);
-
report (NULL, ct->c_partno, ct->c_file,
"convert %s to %s", ct_charset, dest_charset);
- free (ct_charset);
}
} else {
- char *ct_charset = content_charset (ct);
-
report ("iconv", ct->c_partno, ct->c_file,
"failed to convert %s to %s", ct_charset, dest_charset);
- free (ct_charset);
}
+ free (ct_charset);
}
break;