mirror of
https://github.com/seL4/seL4.git
synced 2026-03-27 10:29:57 +00:00
Fix indexing into an empty array
Signed-off-by: elelel <elelel@3wh.net>
This commit is contained in:
@@ -58,7 +58,7 @@ def main(parse_args):
|
||||
file_stack.append(header)
|
||||
else:
|
||||
# popped back up to an earlier header
|
||||
while file_stack[-1] != header:
|
||||
while (len(file_stack) > 0) and (file_stack[-1] != header):
|
||||
file_stack.pop()
|
||||
|
||||
return 0
|
||||
|
||||
Reference in New Issue
Block a user