summaryrefslogtreecommitdiff
path: root/python/binaryview.py
diff options
context:
space:
mode:
Diffstat (limited to 'python/binaryview.py')
-rw-r--r--python/binaryview.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/python/binaryview.py b/python/binaryview.py
index 462eb815..1086035b 100644
--- a/python/binaryview.py
+++ b/python/binaryview.py
@@ -4235,7 +4235,7 @@ class BinaryView(object):
br.seek(addr)
length = 0
c = br.read8()
- while c > 0 and c <= 0x7f:
+ while c is not None and c > 0 and c <= 0x7f:
if length == max_length:
break
length += 1