Do not shadow tm on line 236. (#1243)

This commit is contained in:
Florian Obser
2025-02-25 09:36:44 +01:00
committed by GitHub
parent c5c5486261
commit c371be3f9f
+1 -1
View File
@@ -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;