card-cardos: Fix NULL dereference

Thanks coverity
This commit is contained in:
Jakub Jelen 2020-05-28 22:45:02 +02:00 committed by Frank Morgner
parent b02da8348b
commit 38474739b3
1 changed files with 1 additions and 1 deletions

View File

@ -395,7 +395,7 @@ static int cardos_finish(sc_card_t *card)
{
int r = 0;
if (card)
if (card == NULL )
return 0;
SC_FUNC_CALLED(card->ctx, SC_LOG_DEBUG_VERBOSE);