Misra: Fix endless loop in rule 5.3
This commit is contained in:
parent
efcf71a5dc
commit
f707eceb20
|
@ -292,6 +292,7 @@ def misra_5_3(data):
|
||||||
outerScope = innerScope.nestedIn
|
outerScope = innerScope.nestedIn
|
||||||
while outerScope:
|
while outerScope:
|
||||||
if not outerScope in scopeVars:
|
if not outerScope in scopeVars:
|
||||||
|
outerScope = outerScope.nestedIn
|
||||||
continue
|
continue
|
||||||
found = False
|
found = False
|
||||||
for outerVar in scopeVars[outerScope]:
|
for outerVar in scopeVars[outerScope]:
|
||||||
|
|
Loading…
Reference in New Issue