summaryrefslogtreecommitdiff
path: root/time.c
diff options
context:
space:
mode:
authormatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2003-01-23 04:25:47 +0000
committermatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2003-01-23 04:25:47 +0000
commit259ba31d8a9bde12f412ba500d80180022d7416e (patch)
tree8e3665710f9f78798286c5c0fcdde687f2511cf1 /time.c
parentaffe49b23b9295ec30d50c363686324038d09158 (diff)
* time.c (time_arg): was accessing garbage argv value.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@3398 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'time.c')
-rw-r--r--time.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/time.c b/time.c
index 310530f..ffad741 100644
--- a/time.c
+++ b/time.c
@@ -313,7 +313,7 @@ time_arg(argc, argv, tm, usec)
if (argc == 8) {
/* v[6] is timezone, but ignored */
}
- else {
+ else if (argc == 7) {
*usec = obj2long(v[6]);
}
}