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:
parent
e2304d47a9
commit
dd40b40ee5
1 changed files with 1 additions and 1 deletions
|
@ -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) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue