From 1050f7790d23ce3e43e91a10c666011f2062ab01 Mon Sep 17 00:00:00 2001 From: Marije Baalman Date: Sun, 6 Oct 2013 12:57:48 +0200 Subject: [PATCH] ensure that report id is set to 0 --- hidapi_parser/hidapi_parser.c | 1 + 1 file changed, 1 insertion(+) 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; }