diff options
author | tadf <tadf@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2011-04-20 12:34:01 +0000 |
---|---|---|
committer | tadf <tadf@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2011-04-20 12:34:01 +0000 |
commit | e8d5304080fb4bdfbad6005089fcf14b6850aae8 (patch) | |
tree | 0c8e3f3208e9fc67e64110335a842e9c221136b2 | |
parent | 88014987ad8e159594ac44dd4444078af75c1394 (diff) | |
download | ruby-e8d5304080fb4bdfbad6005089fcf14b6850aae8.tar.gz |
* 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
-rw-r--r-- | ChangeLog | 5 | ||||
-rw-r--r-- | ext/date/date_strptime.c | 1 |
2 files changed, 6 insertions, 0 deletions
@@ -1,3 +1,8 @@ +Wed Apr 20 21:32:11 2011 Tadayoshi Funaba <tadf@dotrb.org> + + * ext/date/date_strptime.c (date__strptime_internal): do not + overwrite local variables. + Wed Apr 20 14:41:28 2011 NARUSE, Yui <naruse@ruby-lang.org> * string.c (rb_str_each_line): check string's length when compare diff --git a/ext/date/date_strptime.c b/ext/date/date_strptime.c index 27f0893efc..548e6a656d 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)) { |