commit 9981c575ca466b3d9be9b1629cd919d01323f1a9
parent 211be785e411ef0ee5d4136a789c09eaa70b489e
Author: Ricardo Mones <ricardo@mones.org>
Date: Sun, 7 Oct 2018 13:27:30 +0200
Fix CID 1439996 and remove unnecessary comparison
Diffstat:
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;