usb_libusb.c: initialize variable stuff.handle (#392)

initialize stuff.handle, or function FoundDevice would return directly.
This commit is contained in:
fenfenS authored and GitHub committed 2023-05-18 01:58:02 +08:00
1 parent e6033f31cc
commit 3b4340525d
1 file changed
+1
+1
View File
@@ -181,6 +181,7 @@ static int LostDevice(libusb_context *ctx, libusb_device *dev, libusb_hotplug_ev
int wait_for_pongo(void)
{
stuff_t stuff;
stuff.handle = NULL;
libusb_hotplug_callback_handle hp[2];
libusb_context* ctx = NULL;