1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

* ext/stringio/stringio.c (strio_sysread): should not raise at empty

read.  a patch from Arthur Schreiber at [ruby-core:17245].


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@17162 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
nobu 2008-06-14 13:52:41 +00:00
parent 1df1cb307e
commit 1a155ee7f6
2 changed files with 6 additions and 1 deletions

View file

@ -1,3 +1,8 @@
Sat Jun 14 22:52:35 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
* ext/stringio/stringio.c (strio_sysread): should not raise at empty
read. a patch from Arthur Schreiber at [ruby-core:17245].
Sat Jun 14 16:55:46 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
* file.c (file_expand_path): no need to expand root path which has no

View file

@ -1152,7 +1152,7 @@ static VALUE
strio_sysread(int argc, VALUE *argv, VALUE self)
{
VALUE val = strio_read(argc, argv, self);
if (NIL_P(val) || RSTRING_LEN(val) == 0) {
if (NIL_P(val)) {
rb_eof_error();
}
return val;