diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2009-06-13 05:59:01 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2009-06-13 05:59:01 +0000 |
commit | 7d8ae4129e9fb91a9e4df4484675b5870ff13a47 (patch) | |
tree | 2a781eb5bd6245b48d6abfcd26f157ac2a05e073 /load.c | |
parent | 087ecdf5edfeb5c29866bb39ce0eaecaa6550ed0 (diff) | |
download | ruby-7d8ae4129e9fb91a9e4df4484675b5870ff13a47.tar.gz |
* load.c (rb_require_safe): FilePathValue() implies rb_str_new4().
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@23679 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'load.c')
-rw-r--r-- | load.c | 3 |
1 files changed, 1 insertions, 2 deletions
@@ -545,7 +545,7 @@ load_ext(VALUE path) VALUE rb_require_safe(VALUE fname, int safe) { - VALUE result = Qnil; + volatile VALUE result = Qnil; rb_thread_t *th = GET_THREAD(); volatile VALUE errinfo = th->errinfo; int state; @@ -563,7 +563,6 @@ rb_require_safe(VALUE fname, int safe) rb_set_safe_level_force(safe); FilePathValue(fname); - RB_GC_GUARD(fname) = rb_str_new4(fname); rb_set_safe_level_force(0); found = search_required(fname, &path); if (found) { |