synctime: fix use of uninitialized buffer on non-Windows

Follow-up to: b714c674f3

Spotted by Codex Security
Closes #20806
This commit is contained in:
Daniel Stenberg 2026-03-03 23:11:51 +01:00
parent 27c3e0839a
commit e49efce12f
No known key found for this signature in database
GPG Key ID: 5CC908FDB71E12C2

View File

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