summaryrefslogtreecommitdiff
path: root/time.c
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2008-01-04 14:08:50 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2008-01-04 14:08:50 +0000
commit636089ddbebe54616d010f2296ae1182b195593d (patch)
tree2d6fdd862fdda6aa765bef8f78b160649c308f29 /time.c
parent555d0728924f43d14f63288043036449804b3344 (diff)
* time.c (time_arg): use converted object. [ruby-core:14759]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@14883 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 c749020737..00061f78ff 100644
--- a/time.c
+++ b/time.c
@@ -349,7 +349,7 @@ time_arg(argc, argv, tm, usec)
tm->tm_mon = -1;
for (i=0; i<12; i++) {
if (RSTRING(s)->len == 3 &&
- strcasecmp(months[i], RSTRING(v[1])->ptr) == 0) {
+ strcasecmp(months[i], RSTRING(s)->ptr) == 0) {
tm->tm_mon = i;
break;
}