diff options
author | charnier <charnier@FreeBSD.org> | 2005-05-29 15:52:48 +0000 |
---|---|---|
committer | charnier <charnier@FreeBSD.org> | 2005-05-29 15:52:48 +0000 |
commit | 00bccc99ecc6ecf5af14a8432263a8aef51e7670 (patch) | |
tree | 87b54e66d92b5af8268f97f8f05c13778404bb31 /usr.bin/who/who.c | |
parent | 45f96a1a02b6242bd9432315ff8fabcc24071748 (diff) | |
download | FreeBSD-src-00bccc99ecc6ecf5af14a8432263a8aef51e7670.zip FreeBSD-src-00bccc99ecc6ecf5af14a8432263a8aef51e7670.tar.gz |
Move variable initialization to reduce compiler warning.
Diffstat (limited to 'usr.bin/who/who.c')
-rw-r--r-- | usr.bin/who/who.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.bin/who/who.c b/usr.bin/who/who.c index 624a4c3..27b6896 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) ? '+' : '-'; |