Skip to content

Commit

Permalink
revert bad change introduced by thibault
Browse files Browse the repository at this point in the history
git-svn-id: http://svn.macosforge.org/repository/ruby/MacRuby/trunk@3457 23306eb0-4c56-4727-a40e-e92c0eb68959
  • Loading branch information
lrz committed Feb 9, 2010
1 parent d015302 commit 6c49dc4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion load.c
Original file line number Diff line number Diff line change
Expand Up @@ -227,7 +227,7 @@ search_required(VALUE name, VALUE *out, int *type)
if (*name_cstr == '/' || *name_cstr == '.') {
// Given name is an absolute path.
name = rb_file_expand_path(name, Qnil);
return check_path(name_cstr, out, type);
return check_path(RSTRING_PTR(name), out, type);
}

// Given name is not an absolute path, we need to go through $:.
Expand Down

0 comments on commit 6c49dc4

Please sign in to comment.