* time.c (time_arg): initialize v[6] even when argc is 10 to

avoid valgrind error.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@3980 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
akr 2003-06-23 04:47:30 +00:00
parent f34b15e5d2
commit 41e018a46d
2 changed files with 6 additions and 0 deletions

View File

@ -1,3 +1,8 @@
Mon Jun 23 13:45:30 2003 Tanaka Akira <akr@m17n.org>
* time.c (time_arg): initialize v[6] even when argc is 10 to
avoid valgrind error.
Sat Jun 21 23:15:08 2003 Yukihiro Matsumoto <matz@ruby-lang.org> Sat Jun 21 23:15:08 2003 Yukihiro Matsumoto <matz@ruby-lang.org>
* eval.c (proc_invoke): should not propagate distination tag if * eval.c (proc_invoke): should not propagate distination tag if

1
time.c
View File

@ -249,6 +249,7 @@ time_arg(argc, argv, tm, usec)
v[3] = argv[2]; v[3] = argv[2];
v[4] = argv[1]; v[4] = argv[1];
v[5] = argv[0]; v[5] = argv[0];
v[6] = Qnil;
tm->tm_isdst = RTEST(argv[8]) ? 1 : 0; tm->tm_isdst = RTEST(argv[8]) ? 1 : 0;
} }
else { else {