Commit 0a040789 authored by Pavel Raiskup's avatar Pavel Raiskup Committed by Kamil Dudka
Browse files

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

It was broken for URLs like "ftp://example.com/".
parent 1182c8bd
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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;
    }