summaryrefslogtreecommitdiff
path: root/mail/escape.c
diff options
context:
space:
mode:
Diffstat (limited to 'mail/escape.c')
-rw-r--r--mail/escape.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/mail/escape.c b/mail/escape.c
index 8675ec847..7733ec513 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;
+ 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.