about summary refs log tree commit diff stats
path: root/example/test_dis.py
diff options
context:
space:
mode:
Diffstat (limited to 'example/test_dis.py')
-rw-r--r--example/test_dis.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/example/test_dis.py b/example/test_dis.py
index 7ce0cc31..ee71b7a2 100644
--- a/example/test_dis.py
+++ b/example/test_dis.py
@@ -112,6 +112,9 @@ elif b.startswith('\x7fELF'):
 
 
 if bs is None or options.shiftoffset is not None:
+
+    if options.shiftoffset is None:
+        options.shiftoffset = "0"
     shift = int(options.shiftoffset, 16)
     log.warning('fallback to string input (offset=%s)' % hex(shift))
     bs = bin_stream_str(b, shift=shift)