diff options
Diffstat (limited to 'libsylph/procmime.c')
-rw-r--r-- | libsylph/procmime.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/libsylph/procmime.c b/libsylph/procmime.c index 98088ad6..81e5829a 100644 --- a/libsylph/procmime.c +++ b/libsylph/procmime.c @@ -1119,6 +1119,11 @@ FILE *procmime_get_text_content(MimeInfo *mimeinfo, FILE *infp, g_warning(_("procmime_get_text_content(): Code conversion failed.\n")); fclose(tmpfp); + if (fflush(outfp) == EOF) { + perror("fflush"); + fclose(outfp); + return NULL; + } rewind(outfp); return outfp; |