diff options
author | Marco Peereboom <marco@conformal.com> | 2011-01-08 23:47:06 +0000 |
---|---|---|
committer | Marco Peereboom <marco@conformal.com> | 2011-01-08 23:47:06 +0000 |
commit | 0654b9f2e8b8689fe8475b17634a26f8831ee903 (patch) | |
tree | 194476ff888f239a77953d5c83023f89b9ffb7b6 | |
parent | 7c10411cf3f5671de937f6d795381794beda0f4c (diff) | |
download | xombrero-0654b9f2e8b8689fe8475b17634a26f8831ee903.tar.gz |
if we only have 1 . then return the passed domain name.
found by tdm
-rw-r--r-- | xxxterm.c | 3 |
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); } |