summaryrefslogtreecommitdiff
path: root/python
diff options
context:
space:
mode:
authorPeter LaFosse <peter@vector35.com>2021-11-23 08:54:15 -0500
committerPeter LaFosse <peter@vector35.com>2021-11-29 09:25:27 -0500
commitc726809eca66a2568b32b73b242de64c1fe58a5a (patch)
treec7c86b578df0a73ca750576cc7d315d50d7b71b1 /python
parent9700dad7db37f5898afbbea82ba2fbf465217bf6 (diff)
Fix type hint in TagList.__init__
Diffstat (limited to 'python')
-rw-r--r--python/function.py5
1 files changed, 3 insertions, 2 deletions
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