summaryrefslogtreecommitdiff
path: root/time.c
diff options
context:
space:
mode:
authorakr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2003-06-23 04:47:30 +0000
committerakr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2003-06-23 04:47:30 +0000
commit41e018a46d466799b2728ab242725a538c224d6c (patch)
treed4412d773242b300724ff5151ff24c924b7e27e1 /time.c
parentf34b15e5d294dafa3e5f3eec00b0a14326589d47 (diff)
* 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
Diffstat (limited to 'time.c')
-rw-r--r--time.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/time.c b/time.c
index 7348906..34b909c 100644
--- a/time.c
+++ b/time.c
@@ -249,6 +249,7 @@ time_arg(argc, argv, tm, usec)
v[3] = argv[2];
v[4] = argv[1];
v[5] = argv[0];
+ v[6] = Qnil;
tm->tm_isdst = RTEST(argv[8]) ? 1 : 0;
}
else {