From 22f844018330725a8559ba61541500b15aa5eaa8 Mon Sep 17 00:00:00 2001 From: iceman1001 Date: Sat, 13 Apr 2019 02:51:33 +0200 Subject: [PATCH] struct --- client/cmdlft55xx.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/client/cmdlft55xx.c b/client/cmdlft55xx.c index 6c4f0b03e..82dc68c8a 100644 --- a/client/cmdlft55xx.c +++ b/client/cmdlft55xx.c @@ -1205,10 +1205,10 @@ static int CmdT55xxReadTrace(const char *Cmd) { si += 5; data.dw = PackBits(si, 15, DemodBuffer); - struct tm *t = NULL; + struct tm *tm = NULL; time_t now = time(NULL); - localtime_r(&now, t); - if (data.year > t.tm_year - 110) + localtime_r(&now, tm); + if (data.year > tm->tm_year - 110) data.year += 2000; else data.year += 2010;