From a5a229f455c26772c8ee350033ce161d194c2119 Mon Sep 17 00:00:00 2001 From: Giovanni Di Sirio Date: Tue, 30 May 2017 07:05:24 +0000 Subject: Fixed bug #845. git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@10232 35acf78f-673a-0410-8e92-d51de3d6d3f4 --- os/hal/ports/STM32/LLD/RTCv1/hal_rtc_lld.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'os/hal/ports/STM32') diff --git a/os/hal/ports/STM32/LLD/RTCv1/hal_rtc_lld.c b/os/hal/ports/STM32/LLD/RTCv1/hal_rtc_lld.c index 9fe6417b2..df4b7e764 100644 --- a/os/hal/ports/STM32/LLD/RTCv1/hal_rtc_lld.c +++ b/os/hal/ports/STM32/LLD/RTCv1/hal_rtc_lld.c @@ -137,7 +137,7 @@ static void rtc_decode(uint32_t tv_sec, t = localtime_r((time_t *)&(tv_sec), &tim); osalDbgAssert(t != NULL, "conversion failed"); #else - struct tm *t = localtime(&tv_sec); + t = localtime(&tv_sec); memcpy(&tim, t, sizeof(struct tm)); #endif -- cgit v1.2.3