]> git.ipfire.org Git - thirdparty/coreutils.git/commitdiff
shuf: tiny simplification
authorPaul Eggert <eggert@cs.ucla.edu>
Sun, 4 Aug 2024 06:00:08 +0000 (23:00 -0700)
committerPaul Eggert <eggert@cs.ucla.edu>
Sun, 4 Aug 2024 06:22:53 +0000 (23:22 -0700)
* src/shuf.c (main): Omit redundant assignment.

src/shuf.c

index 5b17ccf564b2d1012bf0ee0648df5e9f920a41bf..3bc8b3ced2651e3537e513b3c17ae7bacbd1b111 100644 (file)
@@ -509,10 +509,7 @@ main (int argc, char **argv)
       line = operand;
     }
   else if (input_range)
-    {
-      n_lines = hi_input - lo_input + 1;
-      line = nullptr;
-    }
+    line = nullptr;
   else
     {
       /* If an input file is specified, re-open it as stdin.  */