aboutsummaryrefslogtreecommitdiffstats
path: root/host/lib/transport/libusb1_control.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'host/lib/transport/libusb1_control.cpp')
-rw-r--r--host/lib/transport/libusb1_control.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/host/lib/transport/libusb1_control.cpp b/host/lib/transport/libusb1_control.cpp
index 3531128b2..be9b51111 100644
--- a/host/lib/transport/libusb1_control.cpp
+++ b/host/lib/transport/libusb1_control.cpp
@@ -46,6 +46,7 @@ private:
libusb_control_impl::libusb_control_impl(usb_device_handle::sptr handle)
{
+ _ctx = NULL;
libusb::init(&_ctx, libusb_debug_level);
// Find and open the libusb_device corresponding to the