summaryrefslogtreecommitdiff
path: root/acountry.c
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
commiteeab12bd7f4dbfbaebdd0dec72ebcd061160edeb (patch)
tree90b2e20e5ce3072e25dc96f56b6c97b6a59f7411 /acountry.c
parent422b8ddde8679c6b63166dbc6b2f910de83e240f (diff)
downloadc-ares-eeab12bd7f4dbfbaebdd0dec72ebcd061160edeb.tar.gz
c-ares-eeab12bd7f4dbfbaebdd0dec72ebcd061160edeb.tar.bz2
c-ares-eeab12bd7f4dbfbaebdd0dec72ebcd061160edeb.zip
fix compiler warning: 'dot_4' may be used uninitialized in this function
Diffstat (limited to 'acountry.c')
-rw-r--r--acountry.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/acountry.c b/acountry.c
index f74577f..52ef62e 100644
--- a/acountry.c
+++ b/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));