From 0e5fe9e01981649a99d5ca0f0022d42ca191059e Mon Sep 17 00:00:00 2001 From: Paul Eggert Date: Sat, 3 Aug 2024 23:00:08 -0700 Subject: [PATCH] shuf: tiny simplification * src/shuf.c (main): Omit redundant assignment. --- src/shuf.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) 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. */ -- 2.47.2