From c726809eca66a2568b32b73b242de64c1fe58a5a Mon Sep 17 00:00:00 2001 From: Peter LaFosse Date: Tue, 23 Nov 2021 08:54:15 -0500 Subject: Fix type hint in TagList.__init__ --- python/function.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'python') diff --git a/python/function.py b/python/function.py index 152450e8..30ff6ef6 100644 --- a/python/function.py +++ b/python/function.py @@ -258,8 +258,9 @@ class HighLevelILBasicBlockList(BasicBlockList): class TagList: def __init__(self, function:'Function'): self._count = ctypes.c_ulonglong() - self._tags = core.BNGetAddressTagReferences(function.handle, self._count) - assert self._tags is not None, "core.BNGetAddressTagReferences returned None" + tags = core.BNGetAddressTagReferences(function.handle, self._count) + assert tags is not None, "core.BNGetAddressTagReferences returned None" + self._tags = tags self._function = function self._n = 0 -- cgit v1.3.1