aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDenys Vlasenko <vda.linux@googlemail.com>2024-12-20 21:46:32 +0100
committerDenys Vlasenko <vda.linux@googlemail.com>2024-12-20 21:46:32 +0100
commitdd40b40ee59e1eae6a70265741657bc55d960cce (patch)
tree09a6db1d4b9b29989e79bd2e7d94d57b785ae99d
parente2304d47a98a2eff65a3a0a13c53df2cc69529b1 (diff)
downloadbusybox-w32-dd40b40ee59e1eae6a70265741657bc55d960cce.tar.gz
busybox-w32-dd40b40ee59e1eae6a70265741657bc55d960cce.tar.bz2
busybox-w32-dd40b40ee59e1eae6a70265741657bc55d960cce.zip
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>
-rw-r--r--coreutils/cut.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/coreutils/cut.c b/coreutils/cut.c
index 74a704c8f..a766db40f 100644
--- a/coreutils/cut.c
+++ b/coreutils/cut.c
@@ -222,7 +222,7 @@ static void cut_file(FILE *file, const char *delim, const char *odelim,
222 /* Find next delimiter */ 222 /* Find next delimiter */
223#if ENABLE_FEATURE_CUT_REGEX 223#if ENABLE_FEATURE_CUT_REGEX
224 if (opt_REGEX) { 224 if (opt_REGEX) {
225 regmatch_t rr = {-1, -1}; 225 regmatch_t rr;
226 regex_t *reg = (void*) delim; 226 regex_t *reg = (void*) delim;
227 227
228 if (regexec(reg, line + next, 1, &rr, REG_NOTBOL|REG_NOTEOL) != 0) { 228 if (regexec(reg, line + next, 1, &rr, REG_NOTBOL|REG_NOTEOL) != 0) {