Misra: Fix my code
This commit is contained in:
parent
f524bf79ad
commit
bd6f2c17fa
|
@ -1585,7 +1585,7 @@ class MisraChecker:
|
||||||
def find_recursive_call(search_for_function, direct_call, calls_map, visited=set()):
|
def find_recursive_call(search_for_function, direct_call, calls_map, visited=set()):
|
||||||
if direct_call == search_for_function:
|
if direct_call == search_for_function:
|
||||||
return True
|
return True
|
||||||
for indirect_call in calls_map[direct_call]:
|
for indirect_call in calls_map.get(direct_call, []):
|
||||||
if indirect_call == search_for_function:
|
if indirect_call == search_for_function:
|
||||||
return True
|
return True
|
||||||
if indirect_call in visited:
|
if indirect_call in visited:
|
||||||
|
|
Loading…
Reference in New Issue