Fix CID 1491375
[claws.git] / src / plugins / tnef_parse / tnef_parse.c
index 9f2b18e596f47af93285e1992a5e746030c05336..2ea01a2d0dcfd4827466e25196327e70013899e9 100644 (file)
@@ -133,7 +133,8 @@ static MimeInfo *tnef_dump_file(const gchar *filename, char *data, size_t size)
        claws_fclose(fp);
 
        if (g_stat(tmpfilename, &statbuf) < 0) {
-               claws_unlink(tmpfilename);
+               if (claws_unlink(tmpfilename) < 0)
+                        FILE_OP_ERROR(tmpfilename, "claws_unlink");
                procmime_mimeinfo_free_all(&sub_info);
                return tnef_broken_mimeinfo(_("Failed to write the part data."));
        } else {