ftp: Fixed compiler warning
authorSteve Holme <steve_holme@hotmail.com>
Sat, 26 Oct 2013 23:00:01 +0000 (00:00 +0100)
committerSteve Holme <steve_holme@hotmail.com>
Sat, 26 Oct 2013 23:00:01 +0000 (00:00 +0100)
warning: 'result' may be used uninitialized in this function

lib/ftp.c

index 487f9d5a4c3a2a59dc8f335d10d2310251b30b5f..e66a8a808845c9832ed614e6a7c8ee09ea882428 100644 (file)
--- 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) {