X-Git-Url: https://diplodocus.org/git/nmh/blobdiff_plain/3bcb5ef8fc34c3c453ebd968eb80577dc60e71de..a9bb157da7d3cee576e8944eaf8fab2bdbc4be8d:/uip/repl.c?ds=inline diff --git a/uip/repl.c b/uip/repl.c index f97210c2..4ca18e78 100644 --- a/uip/repl.c +++ b/uip/repl.c @@ -1,6 +1,4 @@ - -/* - * repl.c -- reply to a message +/* repl.c -- reply to a message * * This code is Copyright (c) 2002, by the authors of nmh. See the * COPYRIGHT file in the root directory of the nmh distribution for @@ -225,7 +223,8 @@ main (int argc, char **argv) nwhat = 0; continue; case BILDSW: - buildsw++; /* fall... */ + buildsw++; + /* FALLTHRU */ case NWHATSW: nwhat++; continue; @@ -388,7 +387,7 @@ try_it_again: i = YESW; break; default: - advise (NULL, "say what?"); + inform("say what?"); break; } } @@ -452,14 +451,16 @@ try_it_again: fclose (in); { - char *filename = concat (mp->foldpath, "/", msg, NULL); + char *filename = file ? file : concat (mp->foldpath, "/", msg, NULL); for (n = 0; n < svector_size (convert_types); ++n) { add_convert_header (svector_at (convert_types, n), svector_at (convert_args, n), filename, drft); } - free (filename); + if (! file) { + free (filename); + } } if (nwhat)