diff --git a/tests/libtest/cli_ftp_upload.c b/tests/libtest/cli_ftp_upload.c index df7ea57795..7e05807b5c 100644 --- a/tests/libtest/cli_ftp_upload.c +++ b/tests/libtest/cli_ftp_upload.c @@ -71,7 +71,7 @@ static CURLcode test_cli_ftp_upload(const char *URL) CURL *curl_handle; int running_handles = 0; int max_fd = -1; - struct timeval timeout = { 1, 0 }; + struct timeval timeout; fd_set fdread; fd_set fdwrite; fd_set fdexcep; @@ -82,6 +82,9 @@ static CURLcode test_cli_ftp_upload(const char *URL) CURLcode result = CURLE_FAILED_INIT; curl_off_t uploadsize = -1; + timeout.tv_sec = 1; + timeout.tv_usec = 0; + (void)URL; while((ch = cgetopt(test_argc, test_argv, "r:")) != -1) { switch(ch) {