summary refs log tree commit diff
path: root/mseq.c
diff options
context:
space:
mode:
authorIvy Foster <ivy.foster@gmail.com>2016-09-01 18:50:20 -0500
committerIvy Foster <ivy.foster@gmail.com>2016-09-01 18:50:20 -0500
commitca8cef1660ad89ab488a22dc50eeb7cd77222c6e (patch)
tree625d716bafdf3a46c16dffbf4dfddc2a2ef02d03 /mseq.c
parent8d3fa82d8246a08d2c7899963ad7cf61b7a4563c (diff)
downloadmblaze-ca8cef1660ad89ab488a22dc50eeb7cd77222c6e.tar.gz
mblaze-ca8cef1660ad89ab488a22dc50eeb7cd77222c6e.tar.xz
mblaze-ca8cef1660ad89ab488a22dc50eeb7cd77222c6e.zip
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.
Diffstat (limited to 'mseq.c')
-rw-r--r--mseq.c2
1 files changed, 1 insertions, 1 deletions
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+");