Skip to content

Commit

Permalink
Avoid garbage values in HID_Utilities
Browse files Browse the repository at this point in the history
  • Loading branch information
nicolas-cellier-aka-nice committed Nov 18, 2016
1 parent f74a18d commit e8376d8
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -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));
Expand Down

0 comments on commit e8376d8

Please sign in to comment.