sim-card
/
qemu
Archived
10
0
Fork 0

libcacard: Fix wrong assertion (reported by cppcheck)

assert("...") will never do anything. This assertion handles a case
which should never occur, so it must be assert(!"...").

Cc: Alon Levy <alevy@redhat.com>
Signed-off-by: Stefan Weil <sw@weilnetz.de>
This commit is contained in:
Stefan Weil 2011-10-19 21:03:22 +02:00 committed by Alon Levy
parent e7c5e89318
commit d9676f82e5
1 changed files with 1 additions and 1 deletions

View File

@ -754,7 +754,7 @@ vcard_process_apdu(VCard *card, VCardAPDU *apdu, VCardResponse **response)
return vcard7816_vm_process_apdu(card, apdu, response);
case VCARD_DIRECT:
/* if we are type direct, then the applet should handle everything */
assert("VCARD_DIRECT: applet failure");
assert(!"VCARD_DIRECT: applet failure");
break;
}
*response =