]> git.ipfire.org Git - thirdparty/unbound.git/commitdiff
Do not shadow tm on line 236. (#1243)
authorFlorian Obser <florian@narrans.de>
Tue, 25 Feb 2025 08:36:44 +0000 (09:36 +0100)
committerGitHub <noreply@github.com>
Tue, 25 Feb 2025 08:36:44 +0000 (09:36 +0100)
util/log.c

index a44758728b061287eaeb4b4a2ba5b82e373aba38..b75cf065feb858f7665c71a7fc5be716d8d7cf18 100644 (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;