diff options
author | yugui <yugui@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2011-01-28 02:25:35 +0000 |
---|---|---|
committer | yugui <yugui@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2011-01-28 02:25:35 +0000 |
commit | be007d6eae988b657f639446ba6ff2bf0ddefa72 (patch) | |
tree | d594be6a7b995b42e8739707d5b44ce7317b164d /error.c | |
parent | 4676e643aae73a39e8ecf848c8c63a4be99e85a6 (diff) |
merges r30641 from trunk into ruby_1_9_2.
--
* error.c (rb_invalid_str): prevent intermediate variable from GC.
[ruby-core:34820]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_9_2@30692 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'error.c')
-rw-r--r-- | error.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -927,7 +927,7 @@ nometh_err_args(VALUE self) void rb_invalid_str(const char *str, const char *type) { - VALUE s = rb_str_inspect(rb_str_new2(str)); + volatile VALUE s = rb_str_inspect(rb_str_new2(str)); rb_raise(rb_eArgError, "invalid value for %s: %s", type, RSTRING_PTR(s)); } |