Skip to content

Commit 13c1274

Browse files
authored
Merge pull request #11447 from Tharazi97/Coverity_USBHID
Coverity changes in USBHID.cpp
2 parents 5aca108 + 9280392 commit 13c1274

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

drivers/source/usb/USBHID.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -145,6 +145,9 @@ void USBHID::_init(uint8_t output_report_length, uint8_t input_report_length)
145145
_read_idle = true;
146146
_output_length = output_report_length;
147147
_input_length = input_report_length;
148+
reportLength = 0;
149+
_input_report.length = 0;
150+
_output_report.length = 0;
148151
}
149152

150153
bool USBHID::ready()

0 commit comments

Comments
 (0)