diff options
author | Jim Meyering <meyering@fb.com> | 2022-12-05 16:23:21 -0800 |
---|---|---|
committer | Jim Meyering <meyering@fb.com> | 2022-12-10 17:24:22 -0800 |
commit | 908f30573a31f1f2734620813dc5870ff39b2253 (patch) | |
tree | 60e9997918820312ae22c0b6ed746a0dfc188c7c | |
parent | b061d24916fb9a14da37a3f2a05cb80dc65cfd38 (diff) | |
download | grep-908f30573a31f1f2734620813dc5870ff39b2253.tar.gz |
maint: src/dfasearch.c: remove unnecessary re_set_syntax call
* src/dfasearch.c (GEAcompile): Don't call "re_set_syntax (syntax_bits)"
just before regex_compile; that function does the same thing already.
-rw-r--r-- | src/dfasearch.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/src/dfasearch.c b/src/dfasearch.c index a5b0d909..987238bf 100644 --- a/src/dfasearch.c +++ b/src/dfasearch.c @@ -261,8 +261,6 @@ GEAcompile (char *pattern, idx_t size, reg_syntax_t syntax_bits, dc->patterns++; } - re_set_syntax (syntax_bits); - if (!regex_compile (dc, p, len, dc->pcount, lineno, syntax_bits, !backref)) compilation_failed = true; |