(escape_deadletter): Add missing check.
Showing
1 changed file
with
6 additions
and
3 deletions
... | @@ -292,9 +292,12 @@ escape_deadletter (int argc MU_ARG_UNUSED, char **argv MU_ARG_UNUSED, | ... | @@ -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 | ... | ... |
-
Please register or sign in to post a comment