Andrew's git
/
gitweb.git
/ blobdiff
summary
|
log
|
commit
|
diff
|
tree
commit
grep
author
committer
pickaxe
?
re
grep: remove redundant "fixed" field re-assignment to 0
[gitweb.git]
/
grep.c
diff --git
a/grep.c
b/grep.c
index 817270d0819b6b0c3a474941a66af07dcb9c68d3..86dc9b696f8b57052c0321f9667cdbc9296190b5 100644
(file)
--- a/
grep.c
+++ b/
grep.c
@@
-626,8
+626,6
@@
static void compile_regexp(struct grep_pat *p, struct grep_opt *opt)
has_null(p->pattern, p->patternlen) ||
is_fixed(p->pattern, p->patternlen))
p->fixed = !icase || ascii_only;
- else
- p->fixed = 0;
if (p->fixed) {
p->kws = kwsalloc(icase ? tolower_trans_tbl : NULL);