aboutsummaryrefslogtreecommitdiff
path: root/lib/hostip4.c
diff options
context:
space:
mode:
authorGisle Vanem <gvanem@broadpark.no>2006-08-29 21:11:55 +0000
committerGisle Vanem <gvanem@broadpark.no>2006-08-29 21:11:55 +0000
commit4031eb1d91936610ccff8df0e92a51d1ec11d3b5 (patch)
tree909beb420037222da6fc6b0fb717efe61b6d415c /lib/hostip4.c
parent59cf6fd4f058917839a407f5a206f5f1c1a004a6 (diff)
Avoid Metaware's High-C warning "'=' encountered where '==' may have been intended."
Diffstat (limited to 'lib/hostip4.c')
-rw-r--r--lib/hostip4.c2
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));