From ca8cef1660ad89ab488a22dc50eeb7cd77222c6e Mon Sep 17 00:00:00 2001 From: Ivy Foster Date: Thu, 1 Sep 2016 18:50:20 -0500 Subject: Add $MBLAZE environment variable to set profile location As a side benefit, all callers of blaze822_home_file need only pass the filename, so the base directory is set in only one place. --- mseq.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'mseq.c') diff --git a/mseq.c b/mseq.c index 8a03a45..70ed1b2 100644 --- a/mseq.c +++ b/mseq.c @@ -186,7 +186,7 @@ stdinmode() // XXX locking? seqfile = getenv("MAILSEQ"); if (!seqfile) - seqfile = blaze822_home_file(".mblaze/seq"); + seqfile = blaze822_home_file("seq"); snprintf(tmpfile, sizeof tmpfile, "%s-", seqfile); snprintf(oldfile, sizeof oldfile, "%s.old", seqfile); outfile = fopen(tmpfile, "w+"); -- cgit 1.4.1