summaryrefslogtreecommitdiff
path: root/usr.bin/grep
diff options
context:
space:
mode:
authorKyle Evans <kevans@FreeBSD.org>2018-06-07 18:38:48 +0000
committerKyle Evans <kevans@FreeBSD.org>2018-06-07 18:38:48 +0000
commit66f780aee032cc2ca02caa1f9b56e8aba216cd4a (patch)
treebc71c7f1a08af6d6069f82fce194bb8df6d9ff4d /usr.bin/grep
parent40f0e0b100cdc22e3f4f46598996cdc57ea59af9 (diff)
downloadsrc-test2-66f780aee032cc2ca02caa1f9b56e8aba216cd4a.tar.gz
src-test2-66f780aee032cc2ca02caa1f9b56e8aba216cd4a.zip
Notes
Diffstat (limited to 'usr.bin/grep')
-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;