summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--components/libc/compilers/common/time.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/components/libc/compilers/common/time.c b/components/libc/compilers/common/time.c
index 366bc28bd1..e1c9340e69 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)