diff options
author | Daniel Stenberg <daniel@haxx.se> | 2004-04-15 10:43:40 +0000 |
---|---|---|
committer | Daniel Stenberg <daniel@haxx.se> | 2004-04-15 10:43:40 +0000 |
commit | 592522ceaf1c4a9c6c1537b3710567ee46797a2a (patch) | |
tree | bacc5925527a46df36a23e9e7d02143a353b44f8 | |
parent | 4f84e6d9e249297fa659818d5e28934fc98c5936 (diff) |
ftp->dirs[] is no longer terminated with a zero entry but ftp->dirdepth
should be used
-rw-r--r-- | lib/ftp.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -2165,7 +2165,7 @@ CURLcode ftp_perform(struct connectdata *conn, { int i; /* counter for loop */ - for (i=0; ftp->dirs[i]; i++) { + for (i=0; i < ftp->dirdepth; i++) { /* RFC 1738 says empty components should be respected too, but that is plain stupid since CWD can't be used with an empty argument */ if ((result = ftp_cwd_and_mkd(conn, ftp->dirs[i])) != CURLE_OK) |