diff options
| author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2008-06-14 13:52:41 +0000 |
|---|---|---|
| committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2008-06-14 13:52:41 +0000 |
| commit | 1d0f869ea846f02438589062a10f0e51d12ece0a (patch) | |
| tree | eef2b67c1f39d0b27eb600a1a94a5ffda0f5b620 /ext/stringio | |
| parent | 5e261f7d4422c9cffe73b5c3c5294e374b8bf30c (diff) | |
* 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/branches/ruby_1_8@17162 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'ext/stringio')
| -rw-r--r-- | ext/stringio/stringio.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/stringio/stringio.c b/ext/stringio/stringio.c index 913fed7a5c..584bea8f64 100644 --- a/ext/stringio/stringio.c +++ b/ext/stringio/stringio.c @@ -1230,7 +1230,7 @@ strio_sysread(argc, argv, self) VALUE self; { VALUE val = strio_read(argc, argv, self); - if (NIL_P(val) || RSTRING(val)->len == 0) { + if (NIL_P(val)) { rb_eof_error(); } return val; |
