diff options
author | TingPing <tingping@tingping.se> | 2013-09-25 17:16:47 -0400 |
---|---|---|
committer | TingPing <tingping@tingping.se> | 2013-09-25 17:16:47 -0400 |
commit | c7a00a4aba32984b4d3cc8fc5bb1039f4f6cc224 (patch) | |
tree | 76946ed2e9d314643fac98ee01add0f3579fada0 /src/common/util.c | |
parent | 7bc3317eeb2f91a4cd14c4429dcf2aaf7cb3829c (diff) |
Only show users country if its not unknown
Diffstat (limited to 'src/common/util.c')
-rw-r--r-- | src/common/util.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/common/util.c b/src/common/util.c index 9771b1f6..cb6181c4 100644 --- a/src/common/util.c +++ b/src/common/util.c @@ -1253,7 +1253,7 @@ country (char *hostname) domain_t *dom; if (!hostname || !*hostname || isdigit ((unsigned char) hostname[strlen (hostname) - 1])) - return _("Unknown"); + return NULL; if ((p = strrchr (hostname, '.'))) p++; else @@ -1263,7 +1263,7 @@ country (char *hostname) sizeof (domain_t), country_compare); if (!dom) - return _("Unknown"); + return NULL; return _(dom->country); } |