diff --git a/platforms/Mac OS/plugins/JoystickTabletPlugin/HID_Utilities.c b/platforms/Mac OS/plugins/JoystickTabletPlugin/HID_Utilities.c index 60a9a62ba1..d153249e85 100755 --- a/platforms/Mac OS/plugins/JoystickTabletPlugin/HID_Utilities.c +++ b/platforms/Mac OS/plugins/JoystickTabletPlugin/HID_Utilities.c @@ -204,7 +204,7 @@ static void hid_AddElement (CFTypeRef refElement, pRecElement * ppElementCurrent { pRecDevice pDevice = gCurrentGetDevice; pRecElement pElement = NULL; - long elementType, usagePage, usage; + long elementType=0, usagePage=0, usage=0; CFTypeRef refElementType = CFDictionaryGetValue (refElement, CFSTR(kIOHIDElementTypeKey)); CFTypeRef refUsagePage = CFDictionaryGetValue (refElement, CFSTR(kIOHIDElementUsagePageKey)); CFTypeRef refUsage = CFDictionaryGetValue (refElement, CFSTR(kIOHIDElementUsageKey));