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
This commit is contained in:
parent
e320691ecd
commit
5b113de4b9
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue