diff options
Diffstat (limited to 'ax25ipd/io.c')
-rw-r--r-- | ax25ipd/io.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/ax25ipd/io.c b/ax25ipd/io.c index 56ef30f..c0db51d 100644 --- a/ax25ipd/io.c +++ b/ax25ipd/io.c @@ -323,7 +323,8 @@ void io_open(void) if (i_am_unix98_pty_master) { /* get name of pts-device */ - if ((namepts = ptsname(ttyfd)) == NULL) { + namepts = ptsname(ttyfd); + if (namepts == NULL) { perror("Cannot get name of pts-device."); exit(1); } |