From 8a9d84b4a65e2e05d047678966d9a2170c5a1e04 Mon Sep 17 00:00:00 2001 From: Philippe Charnier Date: Sun, 29 May 2005 15:52:48 +0000 Subject: [PATCH] Move variable initialization to reduce compiler warning. --- usr.bin/who/who.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/usr.bin/who/who.c b/usr.bin/who/who.c index 624a4c32a95..27b68960c2b 100644 --- a/usr.bin/who/who.c +++ b/usr.bin/who/who.c @@ -169,11 +169,11 @@ row(struct utmp *ut) if (d_first < 0) d_first = (*nl_langinfo(D_MD_ORDER) == 'd'); + state = '?'; + idle = 0; if (Tflag || uflag) { snprintf(tty, sizeof(tty), "%s%.*s", _PATH_DEV, UT_LINESIZE, ut->ut_line); - state = '?'; - idle = 0; if (stat(tty, &sb) == 0) { state = sb.st_mode & (S_IWOTH|S_IWGRP) ? '+' : '-';