summaryrefslogtreecommitdiffabout
Side-by-side diff
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,
FILE *dead = fopen (getenv ("DEAD"), "r");
int c;
- while ((c = fgetc (dead)) != EOF)
- fputc (c, ofile);
- fclose (dead);
+ if (dead)
+ {
+ while ((c = fgetc (dead)) != EOF)
+ fputc (c, ofile);
+ fclose (dead);
+ }
return 0;
}

Return to:

Send suggestions and report system problems to the System administrator.