diff --git a/mseq.c b/mseq.c index 1b27104..efe8ec0 100644 --- a/mseq.c +++ b/mseq.c @@ -251,6 +251,9 @@ stdinmode() void overridecur(char *file) { + static int once = 0; + if (once++) + return; while (*file == ' ') file++; setenv("MAILDOT", file, 1); @@ -259,6 +262,9 @@ overridecur(char *file) void setcur(char *file) { + static int once = 0; + if (once++) + return; while (*file == ' ') file++; unsetenv("MAILDOT");