From 2355ca4927cffd8307fdb78aaadeb584450bef21 Mon Sep 17 00:00:00 2001 From: Lutz Helwing Date: Fri, 9 Oct 2015 14:58:32 +0200 Subject: Got rid of warnings from some older compilers Signed-off-by: Alexander Wenzel --- src/daemon/dlt_daemon_client.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/daemon/dlt_daemon_client.c') diff --git a/src/daemon/dlt_daemon_client.c b/src/daemon/dlt_daemon_client.c index e6135e3..e1cf841 100644 --- a/src/daemon/dlt_daemon_client.c +++ b/src/daemon/dlt_daemon_client.c @@ -1183,7 +1183,7 @@ int dlt_daemon_control_message_timezone(int sock, DltDaemon *daemon, DltDaemonLo resp->status = DLT_SERVICE_RESPONSE_OK; time_t t = time(NULL); - struct tm lt = {0}; + struct tm lt; localtime_r(&t, <); #if !defined(__CYGWIN__) resp->timezone = (int32_t) lt.tm_gmtoff; -- cgit v1.2.1