From 8f970fdbbf6535b383453e14f0b50630e639c961 Mon Sep 17 00:00:00 2001 From: Bertrand Songis Date: Tue, 24 Jan 2017 18:57:45 +0100 Subject: [PATCH] [9XR-PRO] Warning fixed (ATMEL code) --- radio/src/targets/sky9x/usb/device/core/USBDDriver.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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 } //------------------------------------------------------------------------------