From 32ff28ec2abfc81557c0c0b3334022f24118d84a Mon Sep 17 00:00:00 2001 From: Kevin Orr Date: Wed, 15 Jun 2022 12:35:27 -0400 Subject: Fix use of undefined attribute --- python/mediumlevelil.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'python') diff --git a/python/mediumlevelil.py b/python/mediumlevelil.py index 8daed42b..cf85acb3 100644 --- a/python/mediumlevelil.py +++ b/python/mediumlevelil.py @@ -2660,7 +2660,7 @@ class MediumLevelILFunction: if _arch is None: _arch = _source_function.arch func_handle = _source_function.handle - _handle = core.BNCreateMediumLevelILFunction(self.arch.handle, func_handle) + _handle = core.BNCreateMediumLevelILFunction(_arch.handle, func_handle) assert _source_function is not None assert _arch is not None assert _handle is not None -- cgit v1.3.1