1
0
Fork 0
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:
Nobuyoshi Nakada 2020-05-09 16:02:52 +09:00
parent 7df6eaf29e
commit be575a6eef
No known key found for this signature in database
GPG key ID: 7CD2805BFA3770C6

View file

@ -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;
}