From 9b80a5aa027b158ae2a7314d60cfe54bf239f228 Mon Sep 17 00:00:00 2001 From: "Richard M. Stallman" Date: Sun, 10 Aug 1997 00:15:53 +0000 Subject: [PATCH] (init_system_name): If domain is null, don't add a period. --- src/sysdep.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); -- 2.39.2