From 6062513a89a98a278aea621a2e591ba8df1a8b8e Mon Sep 17 00:00:00 2001 From: John Levon Date: Wed, 19 Dec 2018 18:56:19 +0000 Subject: 10142 smatch fix for who Reviewed by: Andy Fiddaman Reviewed by: Toomas Soome Reviewed by: Gergő Doma Approved by: Joshua M. Clulow MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- usr/src/cmd/who/who.c | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'usr/src') diff --git a/usr/src/cmd/who/who.c b/usr/src/cmd/who/who.c index f7e4071362..7915138a03 100644 --- a/usr/src/cmd/who/who.c +++ b/usr/src/cmd/who/who.c @@ -29,6 +29,10 @@ * Use is subject to license terms. */ +/* + * Copyright (c) 2018, Joyent, Inc. + */ + /* * This program analyzes information found in /var/adm/utmpx * @@ -300,7 +304,7 @@ main(int argc, char **argv) if (sopt == 1) { terse = 1; if (Topt == 1 || aopt == 1) - goerr++; + goerr++; } #endif /* XPG4 */ @@ -698,7 +702,7 @@ dump() /* * Get remote host from utmpx structure */ - if (utmpp && utmpp->ut_host[0]) + if (utmpp->ut_host[0]) (void) printf("\t(%.*s)", sizeof (utmpp->ut_host), utmpp->ut_host); -- cgit v1.2.3