HIDWriter: 0-initialize struct

Fixes CID 610984.

Signed-off-by: Augustin Cavalier <waddlesplash@gmail.com>
This commit is contained in:
Timothy Gu 2015-01-06 16:33:36 -08:00 committed by Augustin Cavalier
parent 2201ddd6d0
commit d91933c26f

View File

@ -42,7 +42,7 @@ HIDWriter::DefineInputPadding(uint8 count, uint8 bitLength)
SetReportSize(bitLength);
SetReportCount(count);
main_item_data data;
main_item_data data = { 0 };
data.data_constant = 1;
return Input(data);
}