summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorToomas Soome <tsoome@me.com>2019-01-26 19:02:21 +0200
committerToomas Soome <tsoome@me.com>2019-07-30 23:14:46 +0300
commitdf8910b3b3628a21874ee73195c149a955fce3a3 (patch)
treead7b0b8833de6b5d356684c197f00473f6ac75b3
parent0afbf5395cf4f4b8d9381a23f852c72b01ec43a4 (diff)
downloadillumos-gate-df8910b3b3628a21874ee73195c149a955fce3a3.tar.gz
11443 ttymon: NULL pointer errors
Reviewed by: Andy Fiddaman <andy@omniosce.org> Approved by: Dan McDonald <danmcd@joyent.com>
-rw-r--r--usr/src/cmd/ttymon/sttyparse.c2
1 files changed, 1 insertions, 1 deletions
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);
}