summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--grep.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/grep.c b/grep.c
index 9c2b259..b94e998 100644
--- a/grep.c
+++ b/grep.c
@@ -616,7 +616,7 @@ static void compile_regexp(struct grep_pat *p, struct grep_opt *opt)
die(_("given pattern contains NULL byte (via -f <file>). This is only supported with -P under PCRE v2"));
pat_is_fixed = is_fixed(p->pattern, p->patternlen);
- if (opt->fixed || pat_is_fixed) {
+ if (p->fixed || pat_is_fixed) {
#ifdef USE_LIBPCRE2
opt->pcre2 = 1;
if (pat_is_fixed) {