From: Florian Obser Date: Tue, 25 Feb 2025 08:36:44 +0000 (+0100) Subject: Do not shadow tm on line 236. (#1243) X-Git-Tag: release-1.23.0rc1~45 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c371be3f9f8a59e6259d037bbcca7fcc4ffb5b7a;p=thirdparty%2Funbound.git Do not shadow tm on line 236. (#1243) --- diff --git a/util/log.c b/util/log.c index a44758728..b75cf065f 100644 --- a/util/log.c +++ b/util/log.c @@ -281,7 +281,7 @@ log_vmsg(int pri, const char* type, if(log_time_iso && log_time_asc) { char tzbuf[16]; struct timeval tv; - struct tm tm, *tm_p; + struct tm *tm_p; if(gettimeofday(&tv, NULL) < 0) memset(&tv, 0, sizeof(tv)); now = (time_t)tv.tv_sec;