]> granicus.if.org Git - curl/commitdiff
finally fixed the 'ret' compiler warning
authorDaniel Stenberg <daniel@haxx.se>
Wed, 30 May 2001 11:06:33 +0000 (11:06 +0000)
committerDaniel Stenberg <daniel@haxx.se>
Wed, 30 May 2001 11:06:33 +0000 (11:06 +0000)
lib/hostip.c

index c1f3fde1196cc3a8af0351398d9fe5b2954ab934..5a4a0eb77058ab09a1ab6877403142119233271a 100644 (file)
@@ -123,7 +123,6 @@ struct hostent *Curl_gethost(struct UrlData *data,
   int ret; /* this variable is unused on several platforms but used on some */
 
 #define CURL_NAMELOOKUP_SIZE 9000
-
   /* Allocate enough memory to hold the full name information structs and
    * everything. OSF1 is known to require at least 8872 bytes. The buffer
    * required for storing all possible aliases and IP numbers is according to
@@ -133,6 +132,8 @@ struct hostent *Curl_gethost(struct UrlData *data,
     return NULL; /* major failure */
   *bufp = buf;
 
+  ret = 0; /* to prevent the compiler warning */
+
   if ( (in=inet_addr(hostname)) != INADDR_NONE ) {
     struct in_addr *addrentry;