summaryrefslogtreecommitdiff
path: root/ares/ares_gethostbyname.c
diff options
context:
space:
mode:
authorYang Tse <yangsita@gmail.com>2008-04-07 14:20:05 +0000
committerYang Tse <yangsita@gmail.com>2008-04-07 14:20:05 +0000
commitbf90d11a31e99896bfcafab3c0e5ec7ca51d8c3f (patch)
treedb6b4b171a61574f2d507a05e42513993da72d4c /ares/ares_gethostbyname.c
parenta08b6ae813df73c90b2cfc8364c4ff1eb0723d84 (diff)
downloadcurl-bf90d11a31e99896bfcafab3c0e5ec7ca51d8c3f.tar.gz
fix compiler warning: local variable may be used without having been initialized
Diffstat (limited to 'ares/ares_gethostbyname.c')
-rw-r--r--ares/ares_gethostbyname.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ares/ares_gethostbyname.c b/ares/ares_gethostbyname.c
index 7c39ad120..33093aaf0 100644
--- a/ares/ares_gethostbyname.c
+++ b/ares/ares_gethostbyname.c
@@ -159,7 +159,7 @@ static void host_callback(void *arg, int status, int timeouts,
{
struct host_query *hquery = (struct host_query *) arg;
ares_channel channel = hquery->channel;
- struct hostent *host;
+ struct hostent *host = NULL;
hquery->timeouts += timeouts;
if (status == ARES_SUCCESS)