aboutsummaryrefslogtreecommitdiff
path: root/usr.bin/grep/util.c
diff options
context:
space:
mode:
Diffstat (limited to 'usr.bin/grep/util.c')
-rw-r--r--usr.bin/grep/util.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/usr.bin/grep/util.c b/usr.bin/grep/util.c
index 4da0a5c33af0..5278859c73e8 100644
--- a/usr.bin/grep/util.c
+++ b/usr.bin/grep/util.c
@@ -148,9 +148,9 @@ grep_tree(char **argv)
bool matched, ok;
const char *wd[] = { ".", NULL };
- fts_flags = 0;
matched = false;
+ /* This switch effectively initializes 'fts_flags' */
switch(linkbehave) {
case LINK_EXPLICIT:
fts_flags = FTS_COMFOLLOW;