From df8910b3b3628a21874ee73195c149a955fce3a3 Mon Sep 17 00:00:00 2001 From: Toomas Soome Date: Sat, 26 Jan 2019 19:02:21 +0200 Subject: 11443 ttymon: NULL pointer errors Reviewed by: Andy Fiddaman Approved by: Dan McDonald --- usr/src/cmd/ttymon/sttyparse.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/usr/src/cmd/ttymon/sttyparse.c b/usr/src/cmd/ttymon/sttyparse.c index 84599af825..cfa30043e3 100644 --- a/usr/src/cmd/ttymon/sttyparse.c +++ b/usr/src/cmd/ttymon/sttyparse.c @@ -603,7 +603,7 @@ parse_encoded(struct termios *cb } s[2] = '\0'; for (i = 0; *t != 0 && i < MAXNAMELEN; i++) { - if (*(t + 1) == (char)NULL) { + if (*(t + 1) == '\0') { free((void *)r); return (0); } -- cgit v1.2.3