diff options
author | Toomas Soome <tsoome@me.com> | 2017-07-16 09:17:07 +0300 |
---|---|---|
committer | Gordon Ross <gwr@nexenta.com> | 2018-03-25 13:31:59 -0400 |
commit | bda17ea5bfa19b1156570d93d7f66218b2c16cec (patch) | |
tree | 52c75d7a29c2e299d20dc1f9afa3de12e43485fe | |
parent | 0fddcadb136a162fa3446317158d6f506f0587f3 (diff) | |
download | illumos-joyent-bda17ea5bfa19b1156570d93d7f66218b2c16cec.tar.gz |
9297 in.telnetd: comparison between pointer and zero character constant
Reviewed by: Andrew Stormont <andyjstormont@gmail.com>
Reviewed by: Sebastian Wiedenroth <sebastian.wiedenroth@skylime.net>
Approved by: Gordon Ross <gwr@nexenta.com>
-rw-r--r-- | usr/src/cmd/cmd-inet/usr.sbin/in.telnetd.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/usr/src/cmd/cmd-inet/usr.sbin/in.telnetd.c b/usr/src/cmd/cmd-inet/usr.sbin/in.telnetd.c index 896b46eb2b..181e6cbabe 100644 --- a/usr/src/cmd/cmd-inet/usr.sbin/in.telnetd.c +++ b/usr/src/cmd/cmd-inet/usr.sbin/in.telnetd.c @@ -3046,7 +3046,7 @@ doit(int f, struct sockaddr_storage *who) * Show banner that getty never gave, but * only if the user did not automatically authenticate. */ - if (getenv("USER") == '\0' && auth_status < AUTH_USER) + if (getenv("USER") == NULL && auth_status < AUTH_USER) showbanner(); /* |