mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
[ruby/io-console] Use sys_fail_fptr macro
https://github.com/ruby/io-console/commit/2b8ba023c8
This commit is contained in:
parent
7df6eaf29e
commit
be575a6eef
1 changed files with 1 additions and 1 deletions
|
@ -618,7 +618,7 @@ console_echo_p(VALUE io)
|
|||
|
||||
GetOpenFile(io, fptr);
|
||||
fd = GetReadFD(fptr);
|
||||
if (!getattr(fd, &t)) rb_sys_fail_str(fptr->pathv);
|
||||
if (!getattr(fd, &t)) sys_fail_fptr(fptr);
|
||||
return echo_p(&t) ? Qtrue : Qfalse;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue