From 4031eb1d91936610ccff8df0e92a51d1ec11d3b5 Mon Sep 17 00:00:00 2001 From: Gisle Vanem Date: Tue, 29 Aug 2006 21:11:55 +0000 Subject: Avoid Metaware's High-C warning "'=' encountered where '==' may have been intended." --- lib/hostip4.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/hostip4.c') 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)); -- cgit v1.2.1