From: Steve Holme Date: Sat, 26 Oct 2013 23:00:01 +0000 (+0100) Subject: ftp: Fixed compiler warning X-Git-Tag: curl-7_34_0~185 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=9f503a254b0c720706124cb75922a0123f0079f0;p=curl ftp: Fixed compiler warning warning: 'result' may be used uninitialized in this function --- diff --git a/lib/ftp.c b/lib/ftp.c index 487f9d5a4..e66a8a808 100644 --- a/lib/ftp.c +++ b/lib/ftp.c @@ -1810,8 +1810,8 @@ static CURLcode proxy_magic(struct connectdata *conn, char *newhost, unsigned short newport, bool *magicdone) { + CURLcode result = CURLE_OK; struct SessionHandle *data=conn->data; - CURLcode result; *magicdone = FALSE; switch(conn->proxytype) {