From: Gisle Vanem Date: Mon, 30 Jan 2006 18:57:02 +0000 (+0000) Subject: Squelch the "warning: 'port' might be used uninitialized in this function". X-Git-Tag: curl-7_15_2~36 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=5994b62930c004deccff61b7670ebf6debadfaa2;p=thirdparty%2Fcurl.git Squelch the "warning: 'port' might be used uninitialized in this function". (occurs w/o ENABLE_IPV6). --- diff --git a/lib/connect.c b/lib/connect.c index 902721c802..787951136e 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);