mirror of
https://github.com/NLnetLabs/unbound.git
synced 2026-09-09 19:37:43 +02:00
Do not shadow tm on line 236. (#1243)
This commit is contained in:
+1
-1
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user