Skip to content

Commit

Permalink
* ext/zlib/zlib.c (gzfile_s_open): use FilePathValue to support
Browse files Browse the repository at this point in the history
  to_path.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@12480 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
  • Loading branch information
akr committed Jun 8, 2007
1 parent 3a68600 commit 3a86830
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions ChangeLog
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
Fri Jun 8 16:34:20 2007 Tanaka Akira <[email protected]>

* ext/zlib/zlib.c (gzfile_s_open): use FilePathValue to support
to_path.

Fri Jun 8 16:11:00 2007 Koichi Sasada <[email protected]>

* eval_jump.h: th->errinfo should clear with nil.
Expand Down
2 changes: 1 addition & 1 deletion ext/zlib/zlib.c
Original file line number Diff line number Diff line change
Expand Up @@ -2287,7 +2287,7 @@ gzfile_s_open(int argc, VALUE *argv, VALUE klass, const char *mode)
rb_raise(rb_eArgError, "wrong number of arguments (0 for 1)");
}
filename = argv[0];
SafeStringValue(filename);
FilePathValue(filename);
io = rb_file_open(RSTRING_PTR(filename), mode);

argv[0] = io;
Expand Down

0 comments on commit 3a86830

Please sign in to comment.