Squelch the "warning: 'port' might be used uninitialized in this function".

(occurs w/o ENABLE_IPV6).
This commit is contained in:
Gisle Vanem 2006-01-30 18:57:02 +00:00
parent 2fbf94b0f3
commit 5994b62930

View File

@ -374,7 +374,7 @@ static CURLcode bindlocal(struct connectdata *conn,
if( bind(sockfd, sock, socksize) >= 0) { if( bind(sockfd, sock, socksize) >= 0) {
/* we succeeded to bind */ /* we succeeded to bind */
struct Curl_sockaddr_storage add; struct Curl_sockaddr_storage add;
unsigned short port; unsigned short port = 0;
size_t size; size_t size;
size = sizeof(add); size = sizeof(add);