From: Paul Eggert Date: Sun, 4 Aug 2024 06:00:08 +0000 (-0700) Subject: shuf: tiny simplification X-Git-Tag: v9.6~201 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=0e5fe9e01981649a99d5ca0f0022d42ca191059e;p=thirdparty%2Fcoreutils.git shuf: tiny simplification * src/shuf.c (main): Omit redundant assignment. --- diff --git a/src/shuf.c b/src/shuf.c index 5b17ccf564..3bc8b3ced2 100644 --- a/src/shuf.c +++ b/src/shuf.c @@ -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. */