From b6cbeb2e20ed991a45f80aa69bb4f9160910b525 Mon Sep 17 00:00:00 2001 From: Romain Tartiere Date: Sat, 26 Mar 2011 13:50:21 +0000 Subject: [PATCH] Fix invalid test. --- libfreefare/mifare_desfire.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libfreefare/mifare_desfire.c b/libfreefare/mifare_desfire.c index a28f5b4..03242c4 100644 --- a/libfreefare/mifare_desfire.c +++ b/libfreefare/mifare_desfire.c @@ -1268,7 +1268,7 @@ create_file1 (MifareTag tag, uint8_t command, uint8_t file_no, int has_iso_file_ BUFFER_APPEND (cmd, command); BUFFER_APPEND (cmd, file_no); - if (iso_file_id >= 0) + if (iso_file_id) BUFFER_APPEND_LE (cmd, iso_file_id, sizeof (iso_file_id), sizeof (iso_file_id)); BUFFER_APPEND (cmd, communication_settings); BUFFER_APPEND_LE (cmd, access_rights, 2, sizeof (uint16_t));