Misra: Fix endless loop in rule 5.3

This commit is contained in:
Daniel Marjamäki 2017-04-18 19:54:43 +02:00
parent efcf71a5dc
commit f707eceb20
1 changed files with 1 additions and 0 deletions

View File

@ -292,6 +292,7 @@ def misra_5_3(data):
outerScope = innerScope.nestedIn
while outerScope:
if not outerScope in scopeVars:
outerScope = outerScope.nestedIn
continue
found = False
for outerVar in scopeVars[outerScope]: