* dir.c (push_glob): fix GC problem.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@24127 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
618cb2cab0
commit
d3cbda6e8d
@ -1,3 +1,7 @@
|
|||||||
|
Wed Jul 15 23:45:11 2009 Koichi Sasada <ko1@atdot.net>
|
||||||
|
|
||||||
|
* dir.c (push_glob): fix GC problem.
|
||||||
|
|
||||||
Wed Jul 15 17:33:52 2009 Yuki Sonoda (Yugui) <yugui@yugui.jp>
|
Wed Jul 15 17:33:52 2009 Yuki Sonoda (Yugui) <yugui@yugui.jp>
|
||||||
|
|
||||||
* ext/purelib.rb: translates a fake path to rubygems in $" into
|
* ext/purelib.rb: translates a fake path to rubygems in $" into
|
||||||
|
1
dir.c
1
dir.c
@ -1561,6 +1561,7 @@ push_glob(VALUE ary, VALUE str, int flags)
|
|||||||
{
|
{
|
||||||
struct glob_args args;
|
struct glob_args args;
|
||||||
rb_encoding *enc = rb_enc_get(str);
|
rb_encoding *enc = rb_enc_get(str);
|
||||||
|
volatile VALUE vstr = str; /* for GC mark */
|
||||||
|
|
||||||
if (enc == rb_usascii_encoding()) enc = rb_filesystem_encoding();
|
if (enc == rb_usascii_encoding()) enc = rb_filesystem_encoding();
|
||||||
args.func = push_pattern;
|
args.func = push_pattern;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user