diff options
author | Daniel Stenberg <daniel@haxx.se> | 2001-05-30 11:06:33 +0000 |
---|---|---|
committer | Daniel Stenberg <daniel@haxx.se> | 2001-05-30 11:06:33 +0000 |
commit | d9f39cc99b7e72cba957b6190913ca7fb5405e93 (patch) | |
tree | 599fa7235b28dfb23e97621df9563338f488cd34 /lib | |
parent | f2e6d235f2a967c916f919a7f14a17a0ef63c519 (diff) |
finally fixed the 'ret' compiler warning
Diffstat (limited to 'lib')
-rw-r--r-- | lib/hostip.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/hostip.c b/lib/hostip.c index c1f3fde11..5a4a0eb77 100644 --- a/lib/hostip.c +++ b/lib/hostip.c @@ -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; |