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 84befcd0a4 ("grep: add a grep.patternType configuration setting", 2012-08-03). Signed-off-by: Ævar Arnfjörð Bjarmason <avarab@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Ævar Arnfjörð Bjarmason committed
Jun 29, 2017 at 22:22 UTC
e62ba4324421279d5c9ba95494dca4b4f0e10eb1
1 file changed
-1
grep.c
-1
@@ -38,7 +38,6 @@ void init_grep_defaults(void)
38
opt->regflags = REG_NEWLINE;
39
opt->max_depth = -1;
40
opt->pattern_type_option = GREP_PATTERN_TYPE_UNSPECIFIED;
41
- opt->extended_regexp_option = 0;
41
color_set(opt->color_context, "");
42
color_set(opt->color_filename, "");
43
color_set(opt->color_function, "");