]> granicus.if.org Git - mutt/commitdiff
Fix a couple of random perror() calls and related problems.
authorThomas Roessler <roessler@does-not-exist.org>
Mon, 14 Feb 2000 15:53:24 +0000 (15:53 +0000)
committerThomas Roessler <roessler@does-not-exist.org>
Mon, 14 Feb 2000 15:53:24 +0000 (15:53 +0000)
attach.c
compose.c

index fff84944c9f36d8e9a5a804e2dd2e6e64a65e5bc..8b2d668f9c30bf34c4749b1538ec8b94b8826b93 100644 (file)
--- 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);
     }
 
index bfe150272afc141747ddeb1c74d6833e7733daee..b56aa6b456be064ef48ac35354be0a35a8bfc32a 100644 (file)
--- 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: