Skip to content

Commit e62ba43

Browse files
avargitster
authored andcommitted
grep: remove redundant double assignment to 0
Stop assigning 0 to the extended_regexp_option field right after we've zeroed out the entire struct with memset() just a few lines earlier. Unlike some of the code being refactored in subsequent commits, this was always completely redundant. See the original code introduced in 84befcd ("grep: add a grep.patternType configuration setting", 2012-08-03). Signed-off-by: Ævar Arnfjörð Bjarmason <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent e0aaa1b commit e62ba43

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

grep.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,6 @@ void init_grep_defaults(void)
3838
opt->regflags = REG_NEWLINE;
3939
opt->max_depth = -1;
4040
opt->pattern_type_option = GREP_PATTERN_TYPE_UNSPECIFIED;
41-
opt->extended_regexp_option = 0;
4241
color_set(opt->color_context, "");
4342
color_set(opt->color_filename, "");
4443
color_set(opt->color_function, "");

0 commit comments

Comments
 (0)