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,
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;
}
......