Skip to content

Commit

Permalink
* dir.c (push_glob): re-fix GC problem.
Browse files Browse the repository at this point in the history
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@24133 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
  • Loading branch information
ko1 committed Jul 15, 2009
1 parent 7030385 commit 0e03a29
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
4 changes: 4 additions & 0 deletions ChangeLog
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
Thu Jul 16 08:56:32 2009 Koichi Sasada <[email protected]>

* dir.c (push_glob): re-fix GC problem.

Thu Jul 16 08:55:27 2009 Koichi Sasada <[email protected]>

* common.mk: add method.h.
Expand Down
3 changes: 1 addition & 2 deletions dir.c
Original file line number Diff line number Diff line change
Expand Up @@ -1561,14 +1561,13 @@ 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;
args.value = ary;
args.enc = enc;

return ruby_brace_glob0(RSTRING_PTR(str), flags | GLOB_VERBOSE,
return ruby_brace_glob0(StringValuePtr(str), flags | GLOB_VERBOSE,
rb_glob_caller, (VALUE)&args, enc);
}

Expand Down

0 comments on commit 0e03a29

Please sign in to comment.