Initialize stuff_t

Signed-off-by: Nick Chan <towinchenmi@gmail.com>
This commit is contained in:
Nick Chan 2025-07-10 17:20:57 +08:00
parent b62347c73e
commit 1389887b84
2 changed files with 2 additions and 3 deletions

View File

@ -208,7 +208,7 @@ static const int pongo_usb_product = PONGO_USB_PRODUCT;
int wait_for_pongo(void) { int wait_for_pongo(void) {
kern_return_t ret; kern_return_t ret;
stuff_t stuff; stuff_t stuff = {0};
io_iterator_t found, lost; io_iterator_t found, lost;
void* cfdict_keys[3]; void* cfdict_keys[3];

View File

@ -180,8 +180,7 @@ static int LostDevice(libusb_context *ctx, libusb_device *dev, libusb_hotplug_ev
int wait_for_pongo(void) int wait_for_pongo(void)
{ {
stuff_t stuff; stuff_t stuff = {0};
stuff.handle = NULL;
libusb_hotplug_callback_handle hp[2]; libusb_hotplug_callback_handle hp[2];
libusb_context* ctx = NULL; libusb_context* ctx = NULL;