diff --git a/components/libc/compilers/common/time.c b/components/libc/compilers/common/time.c index 366bc28bd1d992378a1763434399f424d4204ff7..e1c9340e6961599057ac92fe96ab0b926f21e6b7 100644 --- a/components/libc/compilers/common/time.c +++ b/components/libc/compilers/common/time.c @@ -155,8 +155,8 @@ char* asctime(const struct tm *timeptr) char *ctime_r (const time_t * tim_p, char * result) { - struct tm tm; - return asctime_r (localtime_r (tim_p, &tm), result); + struct tm tm; + return asctime_r (localtime_r (tim_p, &tm), result); } char* ctime(const time_t *tim_p)