Commit a1dc0f56 a1dc0f56e3b24e7c042ea90f3ace824f156403c8 by Sergey Poznyakoff

(escape_deadletter): Add missing check.

1 parent 1181f094
...@@ -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
......