We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b51a9c1 commit 695f95bCopy full SHA for 695f95b
grep.c
@@ -454,10 +454,7 @@ static void compile_regexp(struct grep_pat *p, struct grep_opt *opt)
454
p->fixed = 0;
455
456
if (p->fixed) {
457
- if (opt->regflags & REG_ICASE || p->ignore_case)
458
- p->kws = kwsalloc(tolower_trans_tbl);
459
- else
460
- p->kws = kwsalloc(NULL);
+ p->kws = kwsalloc(icase ? tolower_trans_tbl : NULL);
461
kwsincr(p->kws, p->pattern, p->patternlen);
462
kwsprep(p->kws);
463
return;
0 commit comments