From: Collin Funk Date: Fri, 20 Feb 2026 04:53:20 +0000 (-0800) Subject: maint: seq: prefer static initialization X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=82a20cd6f26303185efaad23e4a899cbb941cb84;p=thirdparty%2Fcoreutils.git maint: seq: prefer static initialization * src/seq.c (separator): Initialize variable. (main): Remove unnecessary initializations. --- diff --git a/src/seq.c b/src/seq.c index 29c332da01..a49a18988b 100644 --- a/src/seq.c +++ b/src/seq.c @@ -55,7 +55,7 @@ static bool locale_ok; static bool equal_width; /* The string used to separate two numbers. */ -static char const *separator; +static char const *separator = "\n"; /* The string output after all numbers have been output. Usually "\n" or "\0". */ @@ -560,9 +560,6 @@ main (int argc, char **argv) atexit (close_stdout); - equal_width = false; - separator = "\n"; - /* We have to handle negative numbers in the command line but this conflicts with the command line arguments. So explicitly check first whether the next argument looks like a negative number. */