Fixed several issues found using a coverity-scan
This commit is contained in:
@@ -134,8 +134,9 @@ int getCommand(UsbCommand* response)
|
||||
*/
|
||||
bool WaitForResponseTimeout(uint32_t cmd, UsbCommand* response, size_t ms_timeout) {
|
||||
|
||||
UsbCommand resp;
|
||||
|
||||
if (response == NULL) {
|
||||
UsbCommand resp;
|
||||
response = &resp;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user