about summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorMarco Peereboom <marco@conformal.com>2011-01-08 23:47:06 +0000
committerMarco Peereboom <marco@conformal.com>2011-01-08 23:47:06 +0000
commit0654b9f2e8b8689fe8475b17634a26f8831ee903 (patch)
tree194476ff888f239a77953d5c83023f89b9ffb7b6
parent7c10411cf3f5671de937f6d795381794beda0f4c (diff)
downloadxombrero-0654b9f2e8b8689fe8475b17634a26f8831ee903.tar.gz
if we only have 1 . then return the passed domain name.
found by tdm
-rw-r--r--xxxterm.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/xxxterm.c b/xxxterm.c
index 7a5a390..deb4fb6 100644
--- a/xxxterm.c
+++ b/xxxterm.c
@@ -1148,6 +1148,9 @@ get_toplevel_domain(char *domain)
 		s--;
 	}
 
+	if (found)
+		return (domain);
+
 	return (NULL);
 }