From 5b113de4b95a0e71e7b68f10fcd4597de0bd5b63 Mon Sep 17 00:00:00 2001 From: ploetz Date: Wed, 14 Feb 2007 22:34:09 +0000 Subject: Correctly initialise rx_len in mfcl_write() (Pierrick Hascoet ) git-svn-id: https://svn.gnumonks.org/trunk/librfid@1975 e0336214-984f-0b4b-a45f-81c69e1f0ede --- src/rfid_proto_mifare_classic.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) -- cgit v1.2.3