Skip to content

Commit 6c85b24

Browse files
committed
Init sz in get_or_create_ptr_from_arg
1 parent b5a3494 commit 6c85b24

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

pythonbpf/helper/helper_utils.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -98,6 +98,7 @@ def get_or_create_ptr_from_arg(
9898
"""Extract or create pointer from the call arguments."""
9999

100100
logger.info(f"Getting pointer from arg: {ast.dump(arg)}")
101+
sz = None
101102
if isinstance(arg, ast.Name):
102103
# Stack space is already allocated
103104
ptr = get_var_ptr_from_name(arg.id, local_sym_tab)

0 commit comments

Comments
 (0)