[hackers] [sbase] Small fix in head.c || FRIGN

From: <git_AT_suckless.org>
Date: Fri, 6 Mar 2015 08:35:00 +0100 (CET)

commit 1d12a2965816de52f0a03d665021949fb31cfffe
Author: FRIGN <dev_AT_frign.de>
Date: Fri Mar 6 00:32:22 2015 +0100

    Small fix in head.c
    
    Only deal with this newline-handling when many is true.

diff --git a/head.c b/head.c
index 89493fd..6c1d937 100644
--- a/head.c
+++ b/head.c
_AT_@ -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);
Received on Fri Mar 06 2015 - 08:35:00 CET

This archive was generated by hypermail 2.3.0 : Fri Mar 06 2015 - 08:36:10 CET