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
1 changed files with 1 additions and 1 deletions

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 */