diff options
Diffstat (limited to 'kiss/kissnetd.c')
-rw-r--r-- | kiss/kissnetd.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/kiss/kissnetd.c b/kiss/kissnetd.c index abf9ee9..b0692df 100644 --- a/kiss/kissnetd.c +++ b/kiss/kissnetd.c @@ -131,7 +131,8 @@ static void ReopenPort(int PortNumber) if (!strcmp(PortList[PortNumber]->Name, "/dev/ptmx")) { char *npts; /* get name of pts-device */ - if ((npts = ptsname(PortList[PortNumber]->Fd)) == NULL) { + npts = ptsname(PortList[PortNumber]->Fd); + if (npts == NULL) { sprintf(MyString, "Cannot get name of pts-device.\n"); syslog(LOG_WARNING, "kissnetd : Cannot get name of pts-device\n"); exit(1); |