diff options
author | Stefan Weil <sw@weilnetz.de> | 2011-10-19 21:03:22 +0200 |
---|---|---|
committer | Alon Levy <alevy@redhat.com> | 2011-10-25 15:44:03 +0200 |
commit | 29b07d207ef5ee7eeef74504dacf4f2625516a02 (patch) | |
tree | 9b6b84a14cc35624e9fb492564efe78fd6fa7673 /libcacard | |
parent | e95957e6f32112adeb5b2ece64d1e6399243f91b (diff) | |
download | qemu-29b07d207ef5ee7eeef74504dacf4f2625516a02.tar.gz qemu-29b07d207ef5ee7eeef74504dacf4f2625516a02.tar.bz2 qemu-29b07d207ef5ee7eeef74504dacf4f2625516a02.zip |
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>
Diffstat (limited to 'libcacard')
-rw-r--r-- | libcacard/card_7816.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libcacard/card_7816.c b/libcacard/card_7816.c index 9fd59d4a5f..6fe27d5631 100644 --- a/libcacard/card_7816.c +++ b/libcacard/card_7816.c @@ -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 = |