make sure the table stays aligned even if no groups are to be displayed
with the "groupnames" option
This commit is contained in:
parent
8b7f84e12c
commit
cbbbda3b17
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: print.c,v 1.108 2009/02/03 17:33:42 drochner Exp $ */
|
||||
/* $NetBSD: print.c,v 1.109 2009/02/03 17:37:02 drochner Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 2000, 2007 The NetBSD Foundation, Inc.
|
||||
@ -63,7 +63,7 @@
|
||||
#if 0
|
||||
static char sccsid[] = "@(#)print.c 8.6 (Berkeley) 4/16/94";
|
||||
#else
|
||||
__RCSID("$NetBSD: print.c,v 1.108 2009/02/03 17:33:42 drochner Exp $");
|
||||
__RCSID("$NetBSD: print.c,v 1.109 2009/02/03 17:37:02 drochner Exp $");
|
||||
#endif
|
||||
#endif /* not lint */
|
||||
|
||||
@ -421,10 +421,8 @@ groupnames(void *arg, VARENT *ve, int mode)
|
||||
} else
|
||||
left = -1;
|
||||
|
||||
if (ki->p_ngroups == 0) {
|
||||
if (ki->p_ngroups == 0)
|
||||
fmt_putc('-', &left);
|
||||
return;
|
||||
}
|
||||
|
||||
for (i = 0; i < ki->p_ngroups; i++) {
|
||||
if (i)
|
||||
|
Loading…
Reference in New Issue
Block a user