diff --git a/hidapi_parser/hidapi_parser.c b/hidapi_parser/hidapi_parser.c index 582d9cb8..d18d0e72 100644 --- a/hidapi_parser/hidapi_parser.c +++ b/hidapi_parser/hidapi_parser.c @@ -144,6 +144,7 @@ struct hid_device_element * hid_new_element(){ struct hid_device_element * element = (struct hid_device_element *) malloc( sizeof( struct hid_device_element ) ); element->next = NULL; + element->report_id = 0; return element; }