lib: fix gcc warning in certain debug builds
``` curl/lib/http_aws_sigv4.c:536:10: error: 'clock' may be used uninitialized [-Werror=maybe-uninitialized] 536 | time_t clock; | ^~~~~ ``` Ref: https://github.com/curl/curl/actions/runs/9158755123/job/25177765000#step:13:79 Cherry-picked from #13718 Closes #13800
This commit is contained in:
Родитель
1054c1cc20
Коммит
58ca0a2f07
|
@ -668,7 +668,7 @@ CURLcode Curl_output_aws_sigv4(struct Curl_easy *data, bool proxy)
|
|||
time(&clock);
|
||||
}
|
||||
#else
|
||||
time(&clock);
|
||||
clock = time(NULL);
|
||||
#endif
|
||||
result = Curl_gmtime(clock, &tm);
|
||||
if(result) {
|
||||
|
|
Загрузка…
Ссылка в новой задаче