Commit 158e1e6f authored by Yukihiro Matsumoto's avatar Yukihiro Matsumoto

should remove memset initialization; update 7496625f

parent 7496625f
...@@ -241,7 +241,6 @@ time_mktime(mrb_state *mrb, mrb_int ayear, mrb_int amonth, mrb_int aday, ...@@ -241,7 +241,6 @@ time_mktime(mrb_state *mrb, mrb_int ayear, mrb_int amonth, mrb_int aday,
time_t nowsecs; time_t nowsecs;
struct tm nowtime = { 0 }; struct tm nowtime = { 0 };
memset(&nowtime, 0, sizeof(struct tm));
nowtime.tm_year = (int)ayear - 1900; nowtime.tm_year = (int)ayear - 1900;
nowtime.tm_mon = (int)amonth - 1; nowtime.tm_mon = (int)amonth - 1;
nowtime.tm_mday = (int)aday; nowtime.tm_mday = (int)aday;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment