talons

Fork of Claws Mail https://www.claws-mail
Log | Files | Refs | README | LICENSE

commit d59c3d1cb008056725776720e8964c2880371514
parent 4ceab3a96a00e52e29f4cf1b7363883b9c036bb2
Author: Ricardo Mones <ricardo@mones.org>
Date:   Sun,  7 Oct 2018 13:27:30 +0200

Fix CID 1439996 and remove unnecessary comparison

Diffstat:
Msrc/procmime.c | 8+++-----
1 file changed, 3 insertions(+), 5 deletions(-)

diff --git a/src/procmime.c b/src/procmime.c @@ -939,12 +939,10 @@ FILE *procmime_get_binary_content(MimeInfo *mimeinfo) } outfp = procmime_fopen(tmpfile, "w+"); -#endif - 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) { return NULL;