diff --git a/radio/src/targets/sky9x/usb/device/core/USBDDriver.c b/radio/src/targets/sky9x/usb/device/core/USBDDriver.c index 36f3591f0..d0ee0bb78 100644 --- a/radio/src/targets/sky9x/usb/device/core/USBDDriver.c +++ b/radio/src/targets/sky9x/usb/device/core/USBDDriver.c @@ -512,10 +512,12 @@ void USBDDriver_Initialize( pDriver->pDescriptors = pDescriptors; pDriver->pInterfaces = pInterfaces; +#if 0 // Initialize interfaces array if not null if (pInterfaces != 0) { - memset(pInterfaces, 0, sizeof(pInterfaces)); + memset(pInterfaces, sizeof(*pInterfaces), 0); // Really wrong, but never happens :) } +#endif } //------------------------------------------------------------------------------