diff options
author | normal <normal@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2014-02-16 05:53:14 +0000 |
---|---|---|
committer | normal <normal@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2014-02-16 05:53:14 +0000 |
commit | 87661039e7c9063a8d2b0d8b91f3d94682267a7e (patch) | |
tree | 76aa5c387625e3f02b1c01ac42baef0ac16589ca /dir.c | |
parent | 0bb75c4a714bae4a50358b8161e1bcc1e00cf144 (diff) |
dir.c (dir_s_glob): RB_GC_GUARD instead of volatile
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@44997 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'dir.c')
-rw-r--r-- | dir.c | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -1912,8 +1912,9 @@ dir_s_glob(int argc, VALUE *argv, VALUE obj) ary = rb_push_glob(str, flags); } else { - volatile VALUE v = ary; + VALUE v = ary; ary = dir_globs(RARRAY_LEN(v), RARRAY_CONST_PTR(v), flags); + RB_GC_GUARD(v); } if (rb_block_given_p()) { |