about summary refs log tree commit diff
path: root/mseq.c
diff options
context:
space:
mode:
Diffstat (limited to 'mseq.c')
-rw-r--r--mseq.c6
1 files changed, 6 insertions, 0 deletions
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");