summaryrefslogtreecommitdiff
path: root/ext/date/date_strptime.c
diff options
context:
space:
mode:
authortadf <tadf@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2011-04-20 12:34:01 +0000
committertadf <tadf@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2011-04-20 12:34:01 +0000
commite8d5304080fb4bdfbad6005089fcf14b6850aae8 (patch)
tree0c8e3f3208e9fc67e64110335a842e9c221136b2 /ext/date/date_strptime.c
parent88014987ad8e159594ac44dd4444078af75c1394 (diff)
* ext/date/date_strptime.c (date__strptime_internal): do not
overwrite local variables. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@31311 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'ext/date/date_strptime.c')
-rw-r--r--ext/date/date_strptime.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/ext/date/date_strptime.c b/ext/date/date_strptime.c
index 27f0893..548e6a6 100644
--- a/ext/date/date_strptime.c
+++ b/ext/date/date_strptime.c
@@ -576,6 +576,7 @@ date__strptime_internal(const char *str, size_t slen,
}
b = rb_backref_get();
+ rb_match_busy(b);
m = f_match(pat, rb_usascii_str_new2(&str[si]));
if (!NIL_P(m)) {