diff options
Diffstat (limited to 'usr.bin/finger/sprint.c')
-rw-r--r-- | usr.bin/finger/sprint.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/usr.bin/finger/sprint.c b/usr.bin/finger/sprint.c index 396c86e..51a1919 100644 --- a/usr.bin/finger/sprint.c +++ b/usr.bin/finger/sprint.c @@ -167,6 +167,11 @@ stimeprint(WHERE *w) { struct tm *delta; + if (w->idletime == -1) { + (void)printf(" "); + return; + } + delta = gmtime(&w->idletime); if (!delta->tm_yday) if (!delta->tm_hour) |