Do not print a header line if it would be empty; required by 1003.1-2001.
This commit is contained in:
parent
1acb5329c8
commit
01e5f16641
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user