Merge branch 'master' of ssh://git.claws-mail.org/home/git/claws
authorColin Leroy <colin@colino.net>
Sun, 7 Oct 2018 12:16:04 +0000 (14:16 +0200)
committerColin Leroy <colin@colino.net>
Sun, 7 Oct 2018 12:16:04 +0000 (14:16 +0200)
src/procmime.c

index a9f28a5df01781ab798559ecc968284843d0db1b..bcf68e2c97f04ee12a359c8c716908528aa577f6 100644 (file)
@@ -886,12 +886,10 @@ FILE *procmime_get_binary_content(MimeInfo *mimeinfo)
                return TRUE;
        }
 
-       outfp = claws_fopen(tmpfile, "w+");
+       outfp = procmime_fopen(tmpfile, "w+");
 
-       if (tmpfile != NULL) {
-               g_unlink(tmpfile);
-               g_free(tmpfile);
-       }
+       g_unlink(tmpfile);
+       g_free(tmpfile);
 #endif
 
        if (procmime_get_part_to_stream(outfp, mimeinfo) < 0) {