aboutsummaryrefslogtreecommitdiffstats
path: root/libcacard
diff options
context:
space:
mode:
authorStefan Weil <sw@weilnetz.de>2011-10-19 21:03:22 +0200
committerAlon Levy <alevy@redhat.com>2011-10-25 15:44:03 +0200
commitd9676f82e54cc7503ad3eb28f996edfeff58a870 (patch)
tree9b6b84a14cc35624e9fb492564efe78fd6fa7673 /libcacard
parente7c5e89318946b57bcc3f65264be595401c12663 (diff)
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.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libcacard/card_7816.c b/libcacard/card_7816.c
index 9fd59d4a5..6fe27d563 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 =