summaryrefslogtreecommitdiff
path: root/ares_gethostbyname.c
diff options
context:
space:
mode:
authorYang Tse <yangsita@gmail.com>2008-04-07 14:20:05 (GMT)
committerYang Tse <yangsita@gmail.com>2008-04-07 14:20:05 (GMT)
commitc73ff0391f177cf3b4210318d4f38191c2f6f8c3 (patch)
tree591fdba2104867b118a11af5247f6f626f87f56d /ares_gethostbyname.c
parent51d57129771526a0a22b423bfa7f2dfc0e1221fb (diff)
downloadc-ares-c73ff0391f177cf3b4210318d4f38191c2f6f8c3.zip
c-ares-c73ff0391f177cf3b4210318d4f38191c2f6f8c3.tar.gz
c-ares-c73ff0391f177cf3b4210318d4f38191c2f6f8c3.tar.bz2
fix compiler warning: local variable may be used without having been initialized
Diffstat (limited to 'ares_gethostbyname.c')
-rw-r--r--ares_gethostbyname.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ares_gethostbyname.c b/ares_gethostbyname.c
index 7c39ad1..33093aa 100644
--- a/ares_gethostbyname.c
+++ b/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)