Add xo_finish() to w.c in case it's invoked as uptime

Reviewed by:	marcel
Approved by:	marcel
Differential Revision: https://reviews.freebsd.org/D1821
This commit is contained in:
Michael Gmelin 2015-02-10 22:23:52 +00:00
parent 2706e8723d
commit 441ee032a3
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=278541

View File

@ -264,7 +264,9 @@ main(int argc, char *argv[])
if (header || wcmd == 0) {
pr_header(&now, nusers);
if (wcmd == 0) {
xo_close_container("uptime-information");
xo_close_container("uptime-information");
xo_finish();
(void)kvm_close(kd);
exit(0);
}