aboutsummaryrefslogtreecommitdiffstats
path: root/io.c
diff options
context:
space:
mode:
Diffstat (limited to 'io.c')
-rw-r--r--io.c9
1 files changed, 2 insertions, 7 deletions
diff --git a/io.c b/io.c
index 9d827d75..94a5dfc3 100644
--- a/io.c
+++ b/io.c
@@ -3895,13 +3895,8 @@ pty_vs_pipe(const char *command)
* in_PROCINFO function now checks that for us.
*/
val = in_PROCINFO(command, "pty", NULL);
- if (val) {
- val = fixtype(val);
- if ((val->flags & NUMBER) != 0)
- return ! iszero(val);
- else
- return (val->stlen != 0);
- }
+ if (val)
+ return boolval(val);
#endif /* HAVE_TERMIOS_H */
return false;
}