summaryrefslogtreecommitdiffstats
path: root/bin/ps/print.c
diff options
context:
space:
mode:
Diffstat (limited to 'bin/ps/print.c')
-rw-r--r--bin/ps/print.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/bin/ps/print.c b/bin/ps/print.c
index 31a857b..86e9b45 100644
--- a/bin/ps/print.c
+++ b/bin/ps/print.c
@@ -72,7 +72,16 @@ printheader(void)
{
VAR *v;
struct varent *vent;
+ int allempty;
+ allempty = 1;
+ for (vent = vhead; vent; vent = vent->next)
+ if (*vent->var->header != '\0') {
+ allempty = 0;
+ break;
+ }
+ if (allempty)
+ return;
for (vent = vhead; vent; vent = vent->next) {
v = vent->var;
if (v->flag & LJUST) {
OpenPOWER on IntegriCloud