aboutsummaryrefslogtreecommitdiff
path: root/lib/ftp.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib/ftp.c')
-rw-r--r--lib/ftp.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/lib/ftp.c b/lib/ftp.c
index 74a73ac66..729d70eb1 100644
--- a/lib/ftp.c
+++ b/lib/ftp.c
@@ -442,10 +442,6 @@ CURLcode Curl_GetFTPResponse(ssize_t *nreadp, /* return number of bytes read */
return result;
}
-static const char *ftpauth[]= {
- "SSL", "TLS", NULL
-};
-
/*
* Curl_ftp_connect() should do everything that is to be considered a part of
* the connection phase.
@@ -459,6 +455,9 @@ CURLcode Curl_ftp_connect(struct connectdata *conn)
struct FTP *ftp;
CURLcode result;
int ftpcode, trynum;
+ static const char * const ftpauth[] = {
+ "SSL", "TLS", NULL
+ };
ftp = (struct FTP *)malloc(sizeof(struct FTP));
if(!ftp)