From bf90d11a31e99896bfcafab3c0e5ec7ca51d8c3f Mon Sep 17 00:00:00 2001 From: Yang Tse Date: Mon, 7 Apr 2008 14:20:05 +0000 Subject: fix compiler warning: local variable may be used without having been initialized --- ares/ares_gethostbyname.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'ares') 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) -- cgit v1.2.3