aboutsummaryrefslogtreecommitdiffstats
path: root/executor/common_usb.h
diff options
context:
space:
mode:
authorAndrey Konovalov <andreyknvl@google.com>2019-04-23 23:59:04 +0200
committerAndrey Konovalov <andreyknvl@gmail.com>2019-04-24 11:00:51 +0200
commit8e3c52b11d5d0843be47f41e00c5612ce29811b0 (patch)
tree59658cb4b41f5437a35969d7e50e54b19b5f7ea2 /executor/common_usb.h
parent0766ce61fd7dd3ac61b6daca0df194285c6ba891 (diff)
executor: fix compiler warning
Diffstat (limited to 'executor/common_usb.h')
-rw-r--r--executor/common_usb.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/executor/common_usb.h b/executor/common_usb.h
index a9b5f54b8..d0cf5dab9 100644
--- a/executor/common_usb.h
+++ b/executor/common_usb.h
@@ -269,7 +269,7 @@ static volatile long syz_usb_connect(volatile long a0, volatile long a1, volatil
debug("syz_usb_connect: bRequestType: 0x%x, bRequest: 0x%x, wValue: 0x%x, wIndex: 0x%x, wLength: %d\n",
event.ctrl.bRequestType, event.ctrl.bRequest, event.ctrl.wValue, event.ctrl.wIndex, event.ctrl.wLength);
- bool response_found;
+ bool response_found = false;
char* response_data = NULL;
uint32 response_length = 0;
NONFAILING(response_found = lookup_connect_response(descs, &index, &event.ctrl, &response_data, &response_length, &done));
@@ -416,7 +416,7 @@ static volatile long syz_usb_control_io(volatile long a0, volatile long a1, vola
debug("syz_usb_control_io: bRequestType: 0x%x, bRequest: 0x%x, wValue: 0x%x, wIndex: 0x%x, wLength: %d\n",
event.ctrl.bRequestType, event.ctrl.bRequest, event.ctrl.wValue, event.ctrl.wIndex, event.ctrl.wLength);
- bool response_found;
+ bool response_found = false;
char* response_data = NULL;
uint32 response_length = 0;
NONFAILING(response_found = lookup_control_io_response(descs, resps, &event.ctrl, &response_data, &response_length));