1
0
mirror of git://git.sv.gnu.org/coreutils.git synced 2026-08-05 08:10:15 +02:00

maint: head: prefer static initialization

* src/head.c (line_end): Initialize variable.
(main): Remove unnecessary initializations.
This commit is contained in:
Collin Funk
2026-02-19 20:33:10 -08:00
parent 97b7213118
commit 5b29c9c04f
+1 -7
View File
@@ -58,7 +58,7 @@ static bool presume_input_pipe;
static bool print_headers;
/* Character to split lines by. */
static char line_end;
static char line_end = '\n';
/* When to print the filename banners. */
enum header_mode
@@ -943,12 +943,6 @@ main (int argc, char **argv)
atexit (close_stdout);
have_read_stdin = false;
print_headers = false;
line_end = '\n';
if (1 < argc && argv[1][0] == '-' && c_isdigit (argv[1][1]))
{
char *a = argv[1];