From: Thomas Roessler Date: Mon, 14 Feb 2000 15:53:24 +0000 (+0000) Subject: Fix a couple of random perror() calls and related problems. X-Git-Tag: mutt-1-1-4-rel~14 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=fab825405f06b4f349513616584e243facdde5e8;p=mutt Fix a couple of random perror() calls and related problems. --- diff --git a/attach.c b/attach.c index fff84944..8b2d668f 100644 --- a/attach.c +++ b/attach.c @@ -792,7 +792,7 @@ int mutt_decode_save_attachment (FILE *fp, BODY *m, char *path, if (s.fpout == NULL) { - perror ("fopen"); + mutt_perror ("fopen"); return (-1); } @@ -804,14 +804,14 @@ int mutt_decode_save_attachment (FILE *fp, BODY *m, char *path, if (stat (m->filename, &st) == -1) { - perror ("stat"); + mutt_perror ("stat"); fclose (s.fpout); return (-1); } if ((s.fpin = fopen (m->filename, "r")) == NULL) { - perror ("fopen"); + mutt_perror ("fopen"); return (-1); } diff --git a/compose.c b/compose.c index bfe15027..b56aa6b4 100644 --- a/compose.c +++ b/compose.c @@ -1062,7 +1062,6 @@ int mutt_compose_menu (HEADER *msg, /* structure for new message */ CHECK_COUNT; mutt_attach_display_loop (menu, op, NULL, NULL, idx, idxlen); menu->redraw = REDRAW_FULL; - mutt_clear_error (); break; case OP_SAVE: