cut: remove unnecessary initialization of regmatch_t

function                                             old     new   delta
cut_main                                            1404    1388     -16

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
This commit is contained in:
Denys Vlasenko 2024-12-20 21:46:32 +01:00
parent e2304d47a9
commit dd40b40ee5

View file

@ -222,7 +222,7 @@ static void cut_file(FILE *file, const char *delim, const char *odelim,
/* Find next delimiter */
#if ENABLE_FEATURE_CUT_REGEX
if (opt_REGEX) {
regmatch_t rr = {-1, -1};
regmatch_t rr;
regex_t *reg = (void*) delim;
if (regexec(reg, line + next, 1, &rr, REG_NOTBOL|REG_NOTEOL) != 0) {