mirror of
https://github.com/RfidResearchGroup/proxmark3.git
synced 2025-03-18 03:00:58 +08:00
chg: fix coverity scan bug, variable is treated like a array
This commit is contained in:
parent
6ab1b285a0
commit
695d4cbb51
1 changed files with 4 additions and 3 deletions
|
@ -438,7 +438,7 @@ static void SMART_CARD_ActivateInterface( void ) {
|
|||
static bool SMART_CARD_EstablishCommunications( void ) {
|
||||
// TODO: This functions implementation is not yet complete
|
||||
bool result = false;
|
||||
uint8_t answer;
|
||||
uint8_t* answer = BigBuf_malloc(100);
|
||||
|
||||
// Activate the interface
|
||||
SMART_CARD_ActivateInterface();
|
||||
|
@ -448,7 +448,7 @@ static bool SMART_CARD_EstablishCommunications( void ) {
|
|||
|
||||
// Process the "answer" if it was received
|
||||
if ( result ) {
|
||||
result = SMART_CARD_ProcessResetAnswer( &answer, 100 );
|
||||
result = SMART_CARD_ProcessResetAnswer( answer, 100 );
|
||||
|
||||
// Check if the "answer" was acceptable
|
||||
if ( !result ) {
|
||||
|
@ -456,6 +456,7 @@ static bool SMART_CARD_EstablishCommunications( void ) {
|
|||
WaitMS( 20 );
|
||||
}
|
||||
}
|
||||
|
||||
return result;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue