curl-users
Re: Compiler warning
From: Daniel Stenberg <daniel-curl_at_haxx.se>
Date: Sat, 5 Feb 2005 00:32:16 +0100 (CET)
Date: Sat, 5 Feb 2005 00:32:16 +0100 (CET)
On Sat, 5 Feb 2005, Eric VERGNAUD wrote:
> Warning : variable 'hints' is not initialized before being used
> ftp.c line 1130 struct addrinfo hints, *res, *ai;
Ouch. The 'hints' struct isn't used anymore... I guess we can just as well
make the lines like this:
if (ai->ai_socktype == 0)
ai->ai_socktype = SOCK_STREAM;
... and remove the hints variable.
Thanks!
-- Daniel Stenberg -- http://curl.haxx.se -- http://daniel.haxx.se Dedicated custom curl help for hire: http://haxx.se/curl.htmlReceived on 2005-02-05