summaryrefslogtreecommitdiff
path: root/libc/misc/time
diff options
context:
space:
mode:
Diffstat (limited to 'libc/misc/time')
-rw-r--r--libc/misc/time/time.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/libc/misc/time/time.c b/libc/misc/time/time.c
index 758a737fd..ff44892a8 100644
--- a/libc/misc/time/time.c
+++ b/libc/misc/time/time.c
@@ -479,6 +479,7 @@ char *ctime(const time_t *t)
* localtime's static buffer:
*/
struct tm xtm;
+ memset(&xtm, 0, sizeof(xtm));
return asctime(localtime_r(t, &xtm));
}