projects
/
proxmark3-svn
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Coverity-fixes in armsrc
[proxmark3-svn]
/
client
/
cmdmain.c
diff --git
a/client/cmdmain.c
b/client/cmdmain.c
index fa358fac8b2211b0ae27eb1e32a746830303807b..77f1c373ece5bb884b0f9b3ea78c8af1dcbe2440 100644
(file)
--- a/
client/cmdmain.c
+++ b/
client/cmdmain.c
@@
-134,8
+134,9
@@
int getCommand(UsbCommand* response)
*/
bool WaitForResponseTimeout(uint32_t cmd, UsbCommand* response, size_t ms_timeout) {
*/
bool WaitForResponseTimeout(uint32_t cmd, UsbCommand* response, size_t ms_timeout) {
+ UsbCommand resp;
+
if (response == NULL) {
if (response == NULL) {
- UsbCommand resp;
response = &resp;
}
response = &resp;
}
Impressum
,
Datenschutz