summaryrefslogtreecommitdiff
path: root/login/openpty.c
diff options
context:
space:
mode:
Diffstat (limited to 'login/openpty.c')
-rw-r--r--login/openpty.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/login/openpty.c b/login/openpty.c
index 12e82072bc..8c843847f1 100644
--- a/login/openpty.c
+++ b/login/openpty.c
@@ -48,7 +48,7 @@ openpty (pmast, pslave, pname, tio, wins)
if (unlockpt (pfd))
goto bail;
- if (!ptsname_r (pfd, name, PTYNAMELEN))
+ if (ptsname_r (pfd, name, PTYNAMELEN) != 0)
goto bail;
tfd = open (name, O_RDWR);