diff options
author | Yang Tse <yangsita@gmail.com> | 2008-04-07 14:20:05 +0000 |
---|---|---|
committer | Yang Tse <yangsita@gmail.com> | 2008-04-07 14:20:05 +0000 |
commit | c73ff0391f177cf3b4210318d4f38191c2f6f8c3 (patch) | |
tree | 591fdba2104867b118a11af5247f6f626f87f56d | |
parent | 51d57129771526a0a22b423bfa7f2dfc0e1221fb (diff) | |
download | c-ares-c73ff0391f177cf3b4210318d4f38191c2f6f8c3.tar.gz c-ares-c73ff0391f177cf3b4210318d4f38191c2f6f8c3.tar.bz2 c-ares-c73ff0391f177cf3b4210318d4f38191c2f6f8c3.zip |
fix compiler warning: local variable may be used without having been initialized
-rw-r--r-- | ares_gethostbyname.c | 2 |
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) |