From 6c85b248ce751740eb2e9dcb4903f391cbf421af Mon Sep 17 00:00:00 2001 From: Pragyansh Chaturvedi Date: Fri, 7 Nov 2025 19:03:21 +0530 Subject: [PATCH] Init sz in get_or_create_ptr_from_arg --- pythonbpf/helper/helper_utils.py | 1 + 1 file changed, 1 insertion(+) diff --git a/pythonbpf/helper/helper_utils.py b/pythonbpf/helper/helper_utils.py index 0a92149..06d3cf1 100644 --- a/pythonbpf/helper/helper_utils.py +++ b/pythonbpf/helper/helper_utils.py @@ -98,6 +98,7 @@ def get_or_create_ptr_from_arg( """Extract or create pointer from the call arguments.""" logger.info(f"Getting pointer from arg: {ast.dump(arg)}") + sz = None if isinstance(arg, ast.Name): # Stack space is already allocated ptr = get_var_ptr_from_name(arg.id, local_sym_tab)