diff options
author | Gisle Vanem <gvanem@broadpark.no> | 2006-08-29 21:11:55 +0000 |
---|---|---|
committer | Gisle Vanem <gvanem@broadpark.no> | 2006-08-29 21:11:55 +0000 |
commit | 4031eb1d91936610ccff8df0e92a51d1ec11d3b5 (patch) | |
tree | 909beb420037222da6fc6b0fb717efe61b6d415c /lib/hostip4.c | |
parent | 59cf6fd4f058917839a407f5a206f5f1c1a004a6 (diff) | |
download | curl-4031eb1d91936610ccff8df0e92a51d1ec11d3b5.tar.gz |
Avoid Metaware's High-C warning "'=' encountered where '==' may have been intended."
Diffstat (limited to 'lib/hostip4.c')
-rw-r--r-- | lib/hostip4.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/hostip4.c b/lib/hostip4.c index cbb00ab2d..08565cd86 100644 --- a/lib/hostip4.c +++ b/lib/hostip4.c @@ -348,7 +348,7 @@ Curl_addrinfo *Curl_he2ai(const struct hostent *he, int port) /* no input == no output! */ return NULL; - for(i=0; (curr = (struct in_addr *)he->h_addr_list[i]); i++) { + for(i=0; (curr = (struct in_addr *)he->h_addr_list[i]) != NULL; i++) { ai = calloc(1, sizeof(Curl_addrinfo) + sizeof(struct sockaddr_in)); |