summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSergey Poznyakoff <gray@gnu.org.ua>2007-10-23 21:04:52 +0000
committerSergey Poznyakoff <gray@gnu.org.ua>2007-10-23 21:04:52 +0000
commita1dc0f56e3b24e7c042ea90f3ace824f156403c8 (patch)
treeaa1b9f3904a09d1b021ff440aed4d3a15783bc37
parent1181f094e065a5f3b72ca9628e8d779917e5d6bc (diff)
downloadmailutils-a1dc0f56e3b24e7c042ea90f3ace824f156403c8.tar.gz
mailutils-a1dc0f56e3b24e7c042ea90f3ace824f156403c8.tar.bz2
(escape_deadletter): Add missing check.mu-1-2-1-before-new-config
-rw-r--r--mail/escape.c9
1 files changed, 6 insertions, 3 deletions
diff --git a/mail/escape.c b/mail/escape.c
index 8675ec847..7733ec513 100644
--- a/mail/escape.c
+++ b/mail/escape.c
@@ -289,15 +289,18 @@ int
289escape_deadletter (int argc MU_ARG_UNUSED, char **argv MU_ARG_UNUSED, 289escape_deadletter (int argc MU_ARG_UNUSED, char **argv MU_ARG_UNUSED,
290 compose_env_t *env MU_ARG_UNUSED) 290 compose_env_t *env MU_ARG_UNUSED)
291{ 291{
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
301static int 304static int
302run_editor (char *ed, char *arg) 305run_editor (char *ed, char *arg)
303{ 306{

Return to:

Send suggestions and report system problems to the System administrator.