aboutsummaryrefslogtreecommitdiffstats
path: root/src/sysdep.c
diff options
context:
space:
mode:
authorRichard M. Stallman1997-08-10 00:15:53 +0000
committerRichard M. Stallman1997-08-10 00:15:53 +0000
commit9b80a5aa027b158ae2a7314d60cfe54bf239f228 (patch)
tree19ee002c3b1845f12966994b5d67955e4f00e7c5 /src/sysdep.c
parent971e48caaa1cd015404d441f62152c6c82cfd185 (diff)
downloademacs-9b80a5aa027b158ae2a7314d60cfe54bf239f228.tar.gz
emacs-9b80a5aa027b158ae2a7314d60cfe54bf239f228.zip
(init_system_name): If domain is null, don't add a period.
Diffstat (limited to 'src/sysdep.c')
-rw-r--r--src/sysdep.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/sysdep.c b/src/sysdep.c
index 8a8ccbd885f..9a73b1c059d 100644
--- a/src/sysdep.c
+++ b/src/sysdep.c
@@ -2324,7 +2324,7 @@ init_system_name ()
2324 strcpy (fqdn, hostname); 2324 strcpy (fqdn, hostname);
2325 if (domain[0] == '.') 2325 if (domain[0] == '.')
2326 strcpy (fqdn + hostlen, domain); 2326 strcpy (fqdn + hostlen, domain);
2327 else 2327 else if (domain[0] != 0)
2328 { 2328 {
2329 fqdn[hostlen] = '.'; 2329 fqdn[hostlen] = '.';
2330 strcpy (fqdn + hostlen + 1, domain); 2330 strcpy (fqdn + hostlen + 1, domain);