bsdgrep(1): Don't initialize fts_flags twice
Admittedly, this is a clang-scan complaint... but it wasn't wrong. fts_flags is initialized by all cases in the switch(), which should be fairly obvious. Annotate this anyways.
This commit is contained in:
parent
40f0e0b100
commit
66f780aee0
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=334808
@ -148,9 +148,9 @@ grep_tree(char **argv)
|
|||||||
bool matched, ok;
|
bool matched, ok;
|
||||||
const char *wd[] = { ".", NULL };
|
const char *wd[] = { ".", NULL };
|
||||||
|
|
||||||
fts_flags = 0;
|
|
||||||
matched = false;
|
matched = false;
|
||||||
|
|
||||||
|
/* This switch effectively initializes 'fts_flags' */
|
||||||
switch(linkbehave) {
|
switch(linkbehave) {
|
||||||
case LINK_EXPLICIT:
|
case LINK_EXPLICIT:
|
||||||
fts_flags = FTS_COMFOLLOW;
|
fts_flags = FTS_COMFOLLOW;
|
||||||
|
Loading…
Reference in New Issue
Block a user