diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/rfid_proto_mifare_classic.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/rfid_proto_mifare_classic.c b/src/rfid_proto_mifare_classic.c index c2020b0..e98dc28 100644 --- a/src/rfid_proto_mifare_classic.c +++ b/src/rfid_proto_mifare_classic.c @@ -82,7 +82,7 @@ mfcl_write(struct rfid_protocol_handle *ph, unsigned int page, unsigned int i; unsigned char tx[18]; unsigned char rx[1]; - unsigned int rx_len; + unsigned int rx_len = sizeof(rx); int ret; if (page > MIFARE_CL_PAGE_MAX) |