chg: fix coverity scan bug, variable is treated like a array

This commit is contained in:
iceman1001 2018-04-20 20:07:41 +02:00
parent 6ab1b285a0
commit 695d4cbb51

View file

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