From 5994b62930c004deccff61b7670ebf6debadfaa2 Mon Sep 17 00:00:00 2001 From: Gisle Vanem Date: Mon, 30 Jan 2006 18:57:02 +0000 Subject: [PATCH] Squelch the "warning: 'port' might be used uninitialized in this function". (occurs w/o ENABLE_IPV6). --- lib/connect.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/connect.c b/lib/connect.c index 902721c80..787951136 100644 --- a/lib/connect.c +++ b/lib/connect.c @@ -374,7 +374,7 @@ static CURLcode bindlocal(struct connectdata *conn, if( bind(sockfd, sock, socksize) >= 0) { /* we succeeded to bind */ struct Curl_sockaddr_storage add; - unsigned short port; + unsigned short port = 0; size_t size; size = sizeof(add);