summaryrefslogtreecommitdiffabout
Unidiff
Diffstat (more/less context) (ignore whitespace changes)
-rw-r--r--mail/escape.c9
1 files changed, 6 insertions, 3 deletions
diff --git a/mail/escape.c b/mail/escape.c
index 8675ec8..7733ec5 100644
--- a/mail/escape.c
+++ b/mail/escape.c
@@ -292,9 +292,12 @@ escape_deadletter (int argc MU_ARG_UNUSED, char **argv MU_ARG_UNUSED,
292 FILE *dead = fopen (getenv ("DEAD"), "r"); 292 FILE *dead = fopen (getenv ("DEAD"), "r");
293 int c; 293 int c;
294 294
295 while ((c = fgetc (dead)) != EOF) 295 if (dead)
296 fputc (c, ofile); 296 {
297 fclose (dead); 297 while ((c = fgetc (dead)) != EOF)
298 fputc (c, ofile);
299 fclose (dead);
300 }
298 return 0; 301 return 0;
299} 302}
300 303

Return to:

Send suggestions and report system problems to the System administrator.