summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorCollin Funk <collin.funk1@gmail.com>2026-02-19 21:11:27 -0800
committerCollin Funk <collin.funk1@gmail.com>2026-02-19 21:11:27 -0800
commitecf3f98eec0ce8e7991fd4956374b604527c80da (patch)
treefdd17726e4e09e881c3677adc83acac542587328 /src
parent85dde4c2d9c8e929f604ead6c6534b761a0c5df8 (diff)
downloadcoreutils-ecf3f98eec0ce8e7991fd4956374b604527c80da.tar.gz
coreutils-ecf3f98eec0ce8e7991fd4956374b604527c80da.zip
maint: wc: prefer static initialization
* src/wc.c (main): Remove unnecessary initializations.
Diffstat (limited to 'src')
-rw-r--r--src/wc.c4
1 files changed, 0 insertions, 4 deletions
diff --git a/src/wc.c b/src/wc.c
index eb6c3d9e4..2e2a9b03c 100644
--- a/src/wc.c
+++ b/src/wc.c
@@ -813,10 +813,6 @@ main (int argc, char **argv)
posixly_correct = (getenv ("POSIXLY_CORRECT") != NULL);
- print_lines = print_words = print_chars = print_bytes = false;
- print_linelength = false;
- total_lines = total_words = total_chars = total_bytes = max_line_length = 0;
-
while ((optc = getopt_long (argc, argv, "clLmw", longopts, NULL)) != -1)
switch (optc)
{