← Commit list

dd40b40ee

Denys Vlasenko
Denys Vlasenko
2024-12-20
SUCCESS Duration: 164s

Subject

cut: remove unnecessary initialization of regmatch_t

Binary

No binary (build failed)

Architecture & Compiler Flags

Architecture: x86_64-linux-gnu Compiler: gcc (Ubuntu 11.4.0-1ubuntu1~22.04.3) 11.4.0

—

Build Log

(log yok)

Commit Diff GitHub →

coreutils/cut.c+1 -1
@@ -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) {