about summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorAjax <commial@gmail.com>2015-03-19 10:04:24 +0100
committerAjax <commial@gmail.com>2015-03-19 10:04:24 +0100
commit1c9d151e718865adefd01d9c6668ef84c2890c59 (patch)
treee508663e6e671f38a337740a73a49d4e431b551e
parentf05424a7acf75f7ab490e9df72c0006380def927 (diff)
downloadmiasm-1c9d151e718865adefd01d9c6668ef84c2890c59.tar.gz
miasm-1c9d151e718865adefd01d9c6668ef84c2890c59.zip
Container: Init attributes with None
-rw-r--r--miasm2/analysis/binary.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/miasm2/analysis/binary.py b/miasm2/analysis/binary.py
index f5cecc87..ff01cbc5 100644
--- a/miasm2/analysis/binary.py
+++ b/miasm2/analysis/binary.py
@@ -88,6 +88,12 @@ class Container(object):
 
     def __init__(self, *args, **kwargs):
         "Alias for 'parse'"
+        # Init attributes
+        self._executable = None
+        self._bin_stream = None
+        self._entry_point = None
+
+        # Launch parsing
         self.parse(*args, **kwargs)
 
     @property