1
0
mirror of https://github.com/moparisthebest/curl synced 2025-03-01 01:41:50 -05:00

fix compiler warning: local variable may be used without having been initialized

This commit is contained in:
Yang Tse 2008-04-07 14:20:05 +00:00
parent a08b6ae813
commit bf90d11a31

View File

@ -159,7 +159,7 @@ static void host_callback(void *arg, int status, int timeouts,
{ {
struct host_query *hquery = (struct host_query *) arg; struct host_query *hquery = (struct host_query *) arg;
ares_channel channel = hquery->channel; ares_channel channel = hquery->channel;
struct hostent *host; struct hostent *host = NULL;
hquery->timeouts += timeouts; hquery->timeouts += timeouts;
if (status == ARES_SUCCESS) if (status == ARES_SUCCESS)