summaryrefslogtreecommitdiff
path: root/python/function.py
diff options
context:
space:
mode:
authorJordan Wiens <jordan@psifertex.com>2019-09-26 11:21:20 -0400
committerJordan Wiens <jordan@psifertex.com>2019-09-26 11:21:20 -0400
commitd8bdba74b88658f1ebea959a958f1e955f355650 (patch)
treed6661ba192aeaa991e92050847682fe545573286 /python/function.py
parent587bc8026809212b813c22bb0a638e7a4302450f (diff)
fix RegisterValue unintialized properties
Diffstat (limited to 'python/function.py')
-rw-r--r--python/function.py10
1 files changed, 5 insertions, 5 deletions
diff --git a/python/function.py b/python/function.py
index d25a8747..4c1d1478 100644
--- a/python/function.py
+++ b/python/function.py
@@ -73,13 +73,13 @@ class LookupTableEntry(object):
class RegisterValue(object):
def __init__(self, arch = None, value = None, confidence = types.max_confidence):
self._is_constant = False
+ self._value = None
+ self._arch = None
+ self._reg = None
+ self._is_constant = False
+ self._offset = None
if value is None:
self._type = RegisterValueType.UndeterminedValue
- self._value = None
- self._arch = None
- self._reg = None
- self._is_constant = False
- self._offset = None
else:
self._type = RegisterValueType(value.state)
if value.state == RegisterValueType.EntryValue: