1
0
mirror of https://github.com/moparisthebest/curl synced 2025-03-01 01:41:50 -05:00

Avoid warning 'port' might be used uninitialized in this function.

This commit is contained in:
Gisle Vanem 2006-07-20 15:54:01 +00:00
parent 684245d6ce
commit 73ebb0edde

View File

@ -808,7 +808,7 @@ static CURLcode ftp_state_use_port(struct connectdata *conn,
int error;
char *host=NULL;
struct Curl_dns_entry *h=NULL;
unsigned short port;
unsigned short port = 0;
/* Step 1, figure out what address that is requested */