From 8509a66b826cabe469cc58f219a6ef6890c8f7d8 Mon Sep 17 00:00:00 2001 From: Viktor Szakats Date: Fri, 12 Jun 2026 18:41:56 +0200 Subject: [PATCH] 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 --- tests/libtest/cli_ftp_upload.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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) {