Small fix in head.c

Only deal with this newline-handling when many is true.
This commit is contained in:
FRIGN 2015-03-06 00:32:22 +01:00
parent ab26b5583e
commit edba90934d
1 changed files with 4 additions and 3 deletions

7
head.c
View File

@ -55,10 +55,11 @@ main(int argc, char *argv[])
ret = 1; ret = 1;
continue; continue;
} }
if (newline) if (many) {
putchar('\n'); if (newline)
if (many) putchar('\n');
printf("==> %s <==\n", *argv); printf("==> %s <==\n", *argv);
}
newline = 1; newline = 1;
head(fp, *argv, n); head(fp, *argv, n);
fclose(fp); fclose(fp);