Initialize stuff_t

Signed-off-by: Nick Chan <[email protected]>
This commit is contained in:
Nick Chan committed 2025-07-10 17:20:57 +08:00
1 parent b62347c73e
commit 1389887b84
2 files changed
+2 -3

No files matched your search

+1 -1
View File
@@ -208,7 +208,7 @@ static const int pongo_usb_product = PONGO_USB_PRODUCT;
int wait_for_pongo(void) {
kern_return_t ret;
stuff_t stuff;
stuff_t stuff = {0};
io_iterator_t found, lost;
void* cfdict_keys[3];
+1 -2
View File
@@ -180,8 +180,7 @@ static int LostDevice(libusb_context *ctx, libusb_device *dev, libusb_hotplug_ev
int wait_for_pongo(void)
{
stuff_t stuff;
stuff.handle = NULL;
stuff_t stuff = {0};
libusb_hotplug_callback_handle hp[2];
libusb_context* ctx = NULL;