Fixed several issues found using a coverity-scan

This commit is contained in:
Martin Holst Swende 2014-10-27 21:46:04 +01:00
commit 90e278d3da
9 changed files with 30 additions and 19 deletions

View file

@ -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;
}