diff options
author | Pavel Raiskup <pavel@raiskup.cz> | 2010-06-24 10:10:29 +0200 |
---|---|---|
committer | Kamil Dudka <kdudka@redhat.com> | 2010-06-24 10:18:17 +0200 |
commit | 0a040789162471388a3cdb10ac4e5ba957a084e5 (patch) | |
tree | f58ff98e7b3fee63dbe0285a31248421f0a28d8c | |
parent | 1182c8bdcd2e8747c8ca5092b97ea2cf0607339e (diff) |
ftp-wildcard: avoid tight loop when used without any pattern
It was broken for URLs like "ftp://example.com/".
-rw-r--r-- | lib/ftp.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -3509,7 +3509,7 @@ static CURLcode init_wc_data(struct connectdata *conn) path[0] = '\0'; } else { /* only list */ - conn->data->set.wildcardmatch = FALSE; + wildcard->state = CURLWC_CLEAN; ret = ftp_parse_url_path(conn); return ret; } |