Bug #156 ยป stringio_sysread.patch
ext/stringio/stringio.c (Arbeitskopie) | ||
---|---|---|
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;
|