summaryrefslogtreecommitdiffhomepage
path: root/src/time.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/time.c')
-rw-r--r--src/time.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/time.c b/src/time.c
index 3da824e82..a8033f95d 100644
--- a/src/time.c
+++ b/src/time.c
@@ -239,7 +239,7 @@ time_mktime(mrb_state *mrb, mrb_int ayear, mrb_int amonth, mrb_int aday,
enum mrb_timezone timezone)
{
time_t nowsecs;
- struct tm nowtime;
+ struct tm nowtime = { 0 };
memset(&nowtime, 0, sizeof(struct tm));
nowtime.tm_year = (int)ayear - 1900;