diff options
author | Yang Tse <yangsita@gmail.com> | 2008-10-07 18:44:32 +0000 |
---|---|---|
committer | Yang Tse <yangsita@gmail.com> | 2008-10-07 18:44:32 +0000 |
commit | eeab12bd7f4dbfbaebdd0dec72ebcd061160edeb (patch) | |
tree | 90b2e20e5ce3072e25dc96f56b6c97b6a59f7411 /acountry.c | |
parent | 422b8ddde8679c6b63166dbc6b2f910de83e240f (diff) | |
download | c-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.c | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -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)); |