summaryrefslogtreecommitdiffstats
path: root/init.c
diff options
context:
space:
mode:
authorThomas Roessler <roessler@does-not-exist.org>1998-10-19 08:42:41 +0000
committerThomas Roessler <roessler@does-not-exist.org>1998-10-19 08:42:41 +0000
commit4a71a39c4168eb0643989db264ccecc4d550b454 (patch)
tree8372762721ee5882f4324008b8dcf6109fdd1d21 /init.c
parent73e857cf45c82da4fcdd53e8a4a94d31ed45479f (diff)
handle domain == "@" properly.
Diffstat (limited to 'init.c')
-rw-r--r--init.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/init.c b/init.c
index 2ad615b4..8af87bcc 100644
--- a/init.c
+++ b/init.c
@@ -1548,10 +1548,13 @@ void mutt_init (int skip_sys_rc, LIST *commands)
Fqdn = safe_strdup ("@");
else
#endif /* DOMAIN */
+ if (*DOMAIN != '@')
{
Fqdn = safe_malloc (strlen (DOMAIN) + strlen (NONULL(Hostname)) + 2);
sprintf (Fqdn, "%s.%s", NONULL(Hostname), DOMAIN);
}
+ else
+ Fqdn = safe_strdup(NONULL(Hostname));
if ((p = getenv ("MAIL")))
Spoolfile = safe_strdup (p);