From ecf3f98eec0ce8e7991fd4956374b604527c80da Mon Sep 17 00:00:00 2001 From: Collin Funk Date: Thu, 19 Feb 2026 21:11:27 -0800 Subject: [PATCH] maint: wc: prefer static initialization * src/wc.c (main): Remove unnecessary initializations. --- src/wc.c | 4 ---- 1 file changed, 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) {