(init_system_name): If domain is null, don't add a period.

This commit is contained in:
Richard M. Stallman 1997-08-10 00:15:53 +00:00
parent 971e48caaa
commit 9b80a5aa02

View file

@ -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);