Skip to content

Commit

Permalink
Do not shadow tm on line 236. (#1243)
Browse files Browse the repository at this point in the history
  • Loading branch information
fobser authored Feb 25, 2025
1 parent c5c5486 commit c371be3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion util/log.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit c371be3

Please sign in to comment.