From: Gisle Vanem Date: Thu, 20 Jul 2006 15:54:01 +0000 (+0000) Subject: Avoid warning 'port' might be used uninitialized in this function. X-Git-Tag: curl-7_15_5~77 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=73ebb0edde56e96d60cd9475b3bce32ec8ab2943;p=curl Avoid warning 'port' might be used uninitialized in this function. --- diff --git a/lib/ftp.c b/lib/ftp.c index 8f328ab91..c27030504 100644 --- a/lib/ftp.c +++ b/lib/ftp.c @@ -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 */