1
0
mirror of https://git.FreeBSD.org/src.git synced 2024-10-19 02:29:40 +00:00

Move variable initialization to reduce compiler warning.

This commit is contained in:
Philippe Charnier 2005-05-29 15:52:48 +00:00
parent a8cf0aaf75
commit 8a9d84b4a6
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=146753

View File

@ -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) ?
'+' : '-';