mirror of
https://github.com/curl/curl.git
synced 2026-04-11 12:01:42 +08:00
synctime: fix use of uninitialized buffer on non-Windows
Follow-up to: b714c674f3
Spotted by Codex Security
Closes #20806
This commit is contained in:
parent
27c3e0839a
commit
e49efce12f
@ -274,7 +274,7 @@ int main(int argc, const char *argv[])
|
||||
time_t tt_gmt;
|
||||
double tzonediffFloat;
|
||||
int tzonediffWord;
|
||||
char timeBuf[61];
|
||||
char timeBuf[61] = "";
|
||||
char tzoneBuf[16];
|
||||
|
||||
SyncTime_CURL_Init(curl, conf.http_proxy, conf.proxy_user);
|
||||
|
||||
Loading…
Reference in New Issue
Block a user