mirror of
https://github.com/zeek/zeek.git
synced 2025-10-17 05:58:20 +00:00
Fix variable shadowing issues reported by LGTM
This commit is contained in:
parent
59b40168fb
commit
2f2a265415
4 changed files with 26 additions and 26 deletions
|
@ -34,8 +34,8 @@ void CCL::Add(int sym)
|
|||
auto sym_p = static_cast<std::intptr_t>(sym);
|
||||
|
||||
// Check to see if the character is already in the ccl.
|
||||
for ( auto sym : *syms )
|
||||
if ( sym == sym_p )
|
||||
for ( auto sym_entry : *syms )
|
||||
if ( sym_entry == sym_p )
|
||||
return;
|
||||
|
||||
syms->push_back(sym_p);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue