]> git.ipfire.org Git - thirdparty/coreutils.git/commitdiff
maint: tty: prefer static initialization
authorCollin Funk <collin.funk1@gmail.com>
Fri, 20 Feb 2026 03:52:29 +0000 (19:52 -0800)
committerCollin Funk <collin.funk1@gmail.com>
Fri, 20 Feb 2026 04:35:19 +0000 (20:35 -0800)
* src/tty.c (main): Remove unnecessary initialization.

src/tty.c

index 24c98f75cddbccdd1c8b05e7390e741b0a865bc7..7946fb78e17bbee252c2416e343eadd2ceed6cbb 100644 (file)
--- a/src/tty.c
+++ b/src/tty.c
@@ -92,8 +92,6 @@ main (int argc, char **argv)
   initialize_exit_failure (TTY_WRITE_ERROR);
   atexit (close_stdout);
 
-  silent = false;
-
   while ((optc = getopt_long (argc, argv, "s", longopts, NULL)) != -1)
     {
       switch (optc)