From: Richard M. Stallman Date: Sun, 10 Aug 1997 00:15:53 +0000 (+0000) Subject: (init_system_name): If domain is null, don't add a period. X-Git-Tag: emacs-20.1~690 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=9b80a5aa027b158ae2a7314d60cfe54bf239f228;p=emacs.git (init_system_name): If domain is null, don't add a period. --- 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 () strcpy (fqdn, hostname); if (domain[0] == '.') strcpy (fqdn + hostlen, domain); - else + else if (domain[0] != 0) { fqdn[hostlen] = '.'; strcpy (fqdn + hostlen + 1, domain);