ftp-wildcard: avoid tight loop when used without any pattern

It was broken for URLs like "ftp://example.com/".
This commit is contained in:
Pavel Raiskup 2010-06-24 10:10:29 +02:00 committed by Kamil Dudka
parent 1182c8bdcd
commit 0a04078916
1 changed files with 1 additions and 1 deletions

View File

@ -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;
}