Do not print a header line if it would be empty; required by 1003.1-2001.

This commit is contained in:
Tim J. Robbins 2002-10-31 13:41:37 +00:00
parent 1acb5329c8
commit 01e5f16641

View File

@ -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) {