cli_ftp_upload.c portability

```
home/runner/work/curl/curl/tests/libtest/cli_ftp_upload.c:74:28: error: missing braces around initializer [-Werror=missing-braces]
   struct timeval timeout = { 1, 0 };
                            ^
```
https://github.com/curl/curl/actions/runs/27428676624/job/81073057087
This commit is contained in:
Viktor Szakats 2026-06-12 18:41:56 +02:00
parent 126eb96c12
commit 8509a66b82
No known key found for this signature in database

View file

@ -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) {