From d9676f82e54cc7503ad3eb28f996edfeff58a870 Mon Sep 17 00:00:00 2001 From: Stefan Weil Date: Wed, 19 Oct 2011 21:03:22 +0200 Subject: [PATCH] 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 Signed-off-by: Stefan Weil --- libcacard/card_7816.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libcacard/card_7816.c b/libcacard/card_7816.c index 9fd59d4a5f9..6fe27d56313 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 = -- 2.39.5