From e49efce12f6ecc84221431cd824518f2dd05de5a Mon Sep 17 00:00:00 2001 From: Daniel Stenberg Date: Tue, 3 Mar 2026 23:11:51 +0100 Subject: [PATCH] synctime: fix use of uninitialized buffer on non-Windows Follow-up to: b714c674f3 Spotted by Codex Security Closes #20806 --- docs/examples/synctime.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/examples/synctime.c b/docs/examples/synctime.c index 48751b92c9..32b06d3bc1 100644 --- a/docs/examples/synctime.c +++ b/docs/examples/synctime.c @@ -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);