Fix wrong variable usage.

This commit is contained in:
Romain Tartiere 2012-05-14 13:58:06 +00:00
parent fe5e7f3016
commit 07c5c78a8e

View file

@ -1329,7 +1329,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)
if (has_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));