return 0;
tempfd = m_tempfd(tempfile, sizeof(tempfile), NONULL(Tempdir), NULL);
-
if (mutt_decode_save_attachment (fp, b, tempfd, 0) != 0) {
unlink (tempfile);
return 0;
}
- if ((tfp = fdopen (tempfd, "r")) == NULL) {
- unlink (tempfile);
+ if (!(tfp = fopen(tempfile, "r"))) {
+ unlink(tempfile);
return 0;
}