Permalink
Browse files

should remove memset initialization; update 7496625

  • Loading branch information...
1 parent 7496625 commit 158e1e6fcea3e39cb0e7af3b82d11fdaee36f68a @matz matz committed Jul 9, 2012
Showing with 0 additions and 1 deletion.
  1. +0 −1 src/time.c
View
1 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;

0 comments on commit 158e1e6

Please sign in to comment.