aboutsummaryrefslogtreecommitdiff
path: root/ares
diff options
context:
space:
mode:
authorYang Tse <yangsita@gmail.com>2008-10-07 18:44:32 +0000
committerYang Tse <yangsita@gmail.com>2008-10-07 18:44:32 +0000
commit31a3432a8e16f5c02a1fed267a8a1716ae16c255 (patch)
treed3c3a13acee6da09a4c568b3cf86a7869efcf62f /ares
parent27db0450952b356c7aa98296f5b03317d8c15a70 (diff)
fix compiler warning: 'dot_4' may be used uninitialized in this function
Diffstat (limited to 'ares')
-rw-r--r--ares/acountry.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/ares/acountry.c b/ares/acountry.c
index f74577f91..52ef62e25 100644
--- a/ares/acountry.c
+++ b/ares/acountry.c
@@ -551,6 +551,7 @@ static void find_country_from_cname(const char *cname, struct in_addr addr)
z0 = tolower(cname[0]);
z1 = tolower(cname[1]);
ccopy = strdup(cname);
+ dot_4 = NULL;
ver_1 = (z0 == 'z' && z1 == 'z' && !strcasecmp(cname+4,nerd_ver1));
ver_2 = (is_addr(ccopy,&dot_4) && !strcasecmp(dot_4,nerd_ver2));