about summary refs log tree commit diff
path: root/qemu_mode/patches
diff options
context:
space:
mode:
authorhexcoder- <heiko@hexco.de>2020-03-28 13:51:35 +0100
committerhexcoder- <heiko@hexco.de>2020-03-28 13:51:35 +0100
commit2aa7ddf1a81baf02a1df05a987e5bfef387c25a9 (patch)
tree03270c9b1644e0197e2a6a4443acc534a4f78052 /qemu_mode/patches
parent3c142efecfd2ec2e4dfb766819bed26b184c9671 (diff)
downloadafl++-2aa7ddf1a81baf02a1df05a987e5bfef387c25a9.tar.gz
qemu_mode: fix more compiler warnings
Diffstat (limited to 'qemu_mode/patches')
-rw-r--r--qemu_mode/patches/__init__.py.diff17
1 files changed, 17 insertions, 0 deletions
diff --git a/qemu_mode/patches/__init__.py.diff b/qemu_mode/patches/__init__.py.diff
new file mode 100644
index 00000000..7e189b99
--- /dev/null
+++ b/qemu_mode/patches/__init__.py.diff
@@ -0,0 +1,17 @@
+--- a/scripts/tracetool/__init__.py	2020-03-28 13:42:21.937700726 +0100
++++ b/scripts/tracetool/__init__.py	2020-03-28 13:41:50.991034257 +0100
+@@ -447,12 +447,12 @@
+     import tracetool
+ 
+     format = str(format)
+-    if len(format) is 0:
++    if len(format) == 0:
+         raise TracetoolError("format not set")
+     if not tracetool.format.exists(format):
+         raise TracetoolError("unknown format: %s" % format)
+ 
+-    if len(backends) is 0:
++    if len(backends) == 0:
+         raise TracetoolError("no backends specified")
+     for backend in backends:
+         if not tracetool.backend.exists(backend):