From 158e1e6fcea3e39cb0e7af3b82d11fdaee36f68a Mon Sep 17 00:00:00 2001 From: Yukihiro Matsumoto Date: Mon, 9 Jul 2012 13:28:13 +0900 Subject: should remove memset initialization; update 7496625 --- src/time.c | 1 - 1 file changed, 1 deletion(-) (limited to 'src/time.c') diff --git a/src/time.c b/src/time.c index a8033f95d..45e796069 100644 --- a/src/time.c +++ b/src/time.c @@ -241,7 +241,6 @@ time_mktime(mrb_state *mrb, mrb_int ayear, mrb_int amonth, mrb_int aday, time_t nowsecs; struct tm nowtime = { 0 }; - memset(&nowtime, 0, sizeof(struct tm)); nowtime.tm_year = (int)ayear - 1900; nowtime.tm_mon = (int)amonth - 1; nowtime.tm_mday = (int)aday; -- cgit v1.2.3