Fix (CWE-118): Implicit memory aliasing in for loop.
This commit is contained in:
parent
e651a7495f
commit
9f49a689fd
3 changed files with 6 additions and 6 deletions
|
|
@ -35,9 +35,9 @@ func (w *Walker) fetchTeams() error {
|
|||
w.TeamBindings = map[string]*AirbusTeam{}
|
||||
|
||||
for tid, team := range w.Teams {
|
||||
for _, t := range teams {
|
||||
for i, t := range teams {
|
||||
if team.Name == t.Name || team.ExternalId == t.Name {
|
||||
w.TeamBindings[tid] = &t
|
||||
w.TeamBindings[tid] = &teams[i]
|
||||
break
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Reference in a new issue