diff options
author | shyouhei <shyouhei@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2008-07-17 12:32:16 +0000 |
---|---|---|
committer | shyouhei <shyouhei@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2008-07-17 12:32:16 +0000 |
commit | a571edd80a8a30fc9fba79ebe5bf7bf9133e1f63 (patch) | |
tree | 8f3e54bd980f3d285480aab1af2645de014e8470 /string.c | |
parent | 98d848a90bfb72da552c2705c2dbecbdbc72ad8c (diff) |
merge revision(s) 17719:
* string.c (rb_str_format_m): make tmp volatile to avoid possible GC
problem.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8_6@18112 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'string.c')
-rw-r--r-- | string.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -455,7 +455,7 @@ static VALUE rb_str_format_m(str, arg) VALUE str, arg; { - VALUE tmp = rb_check_array_type(arg); + volatile VALUE tmp = rb_check_array_type(arg); if (!NIL_P(tmp)) { return rb_str_format(RARRAY_LEN(tmp), RARRAY_PTR(tmp), str); |