commit edba90934de9277103a87947d7c25d33dbc13189
parent ab26b5583e607b701b684d05d2eabe71eb4246b0
Author: FRIGN <dev@frign.de>
Date: Fri, 6 Mar 2015 00:32:22 +0100
Small fix in head.c
Only deal with this newline-handling when many is true.
Diffstat:
1 file changed, 4 insertions(+), 3 deletions(-)
diff --git a/head.c b/head.c
@@ -55,10 +55,11 @@ main(int argc, char *argv[])
ret = 1;
continue;
}
- if (newline)
- putchar('\n');
- if (many)
+ if (many) {
+ if (newline)
+ putchar('\n');
printf("==> %s <==\n", *argv);
+ }
newline = 1;
head(fp, *argv, n);
fclose(fp);