summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorploetz <ploetz@e0336214-984f-0b4b-a45f-81c69e1f0ede>2007-02-14 22:34:09 +0000
committerploetz <ploetz@e0336214-984f-0b4b-a45f-81c69e1f0ede>2007-02-14 22:34:09 +0000
commit5b113de4b95a0e71e7b68f10fcd4597de0bd5b63 (patch)
treed9cffbf9ec621d2523fdd2b8a687bd397f766d94 /src
parente320691ecd7ae2b08703660791451eeaf072013b (diff)
Correctly initialise rx_len in mfcl_write() (Pierrick Hascoet <pierrick.hascoet@hydromel.net>)
git-svn-id: https://svn.gnumonks.org/trunk/librfid@1975 e0336214-984f-0b4b-a45f-81c69e1f0ede
Diffstat (limited to 'src')
-rw-r--r--src/rfid_proto_mifare_classic.c2
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)
personal git repositories of Harald Welte. Your mileage may vary