diff --git a/ChangeLog b/ChangeLog index ab4194d33a..cd156b0a61 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,7 @@ +Wed Jul 15 23:45:11 2009 Koichi Sasada + + * dir.c (push_glob): fix GC problem. + Wed Jul 15 17:33:52 2009 Yuki Sonoda (Yugui) * ext/purelib.rb: translates a fake path to rubygems in $" into diff --git a/dir.c b/dir.c index 76c926478b..d438a492a5 100644 --- a/dir.c +++ b/dir.c @@ -1561,6 +1561,7 @@ push_glob(VALUE ary, VALUE str, int flags) { struct glob_args args; rb_encoding *enc = rb_enc_get(str); + volatile VALUE vstr = str; /* for GC mark */ if (enc == rb_usascii_encoding()) enc = rb_filesystem_encoding(); args.func = push_pattern;