Skip to content

Commit

Permalink
Fix logic
Browse files Browse the repository at this point in the history
Signed-off-by: Arthur Chan <[email protected]>
  • Loading branch information
arthurscchan committed Jan 22, 2025
1 parent e23ebe2 commit 51ce00b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/fuzz_introspector/cfg_load.py
Original file line number Diff line number Diff line change
Expand Up @@ -137,8 +137,8 @@ def data_file_read_calltree(filename: str) -> Optional[CalltreeCallsite]:
# We are going one calldepth deeper
# Special case in the root parent case, where we have no
# parent in the current node and also no children.
if (curr_ctcs_node.parent_calltree_callsite
or len(curr_ctcs_node.children) == 0):
if (curr_ctcs_node.parent_calltree_callsite is not None
and curr_ctcs_node.children):
curr_ctcs_node = curr_ctcs_node.children[-1]

elif depth < curr_depth and curr_ctcs_node is not None:
Expand Down

0 comments on commit 51ce00b

Please sign in to comment.