From bda17ea5bfa19b1156570d93d7f66218b2c16cec Mon Sep 17 00:00:00 2001 From: Toomas Soome Date: Sun, 16 Jul 2017 09:17:07 +0300 Subject: 9297 in.telnetd: comparison between pointer and zero character constant Reviewed by: Andrew Stormont Reviewed by: Sebastian Wiedenroth Approved by: Gordon Ross --- usr/src/cmd/cmd-inet/usr.sbin/in.telnetd.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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(); /* -- cgit v1.2.3