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;