aboutsummaryrefslogtreecommitdiffstats
path: root/time.c
diff options
context:
space:
mode:
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 0f34cf5e58..72ed7c9d15 100644
--- a/time.c
+++ b/time.c
@@ -419,7 +419,7 @@ time_arg(int argc, VALUE *argv, struct tm *tm, long *nsec)
tm->tm_mon = -1;
for (i=0; i<12; i++) {
if (RSTRING_LEN(s) == 3 &&
- STRCASECMP(months[i], RSTRING_PTR(v[1])) == 0) {
+ STRCASECMP(months[i], RSTRING_PTR(s)) == 0) {
tm->tm_mon = i;
break;
}