changeset 19258:cf4b06e6a5ab

(init_system_name): If domain is null, don't add a period.
author Richard M. Stallman <rms@gnu.org>
date Sun, 10 Aug 1997 00:15:53 +0000
parents e487ed925a50
children 4a2b7dc8a86f
files src/sysdep.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/sysdep.c	Sat Aug 09 20:09:16 1997 +0000
+++ b/src/sysdep.c	Sun Aug 10 00:15:53 1997 +0000
@@ -2324,7 +2324,7 @@
 	  strcpy (fqdn, hostname);
 	  if (domain[0] == '.')
 	    strcpy (fqdn + hostlen, domain);
-	  else
+	  else if (domain[0] != 0)
 	    {
 	      fqdn[hostlen] = '.';
 	      strcpy (fqdn + hostlen + 1, domain);