pn53x: avoid warning about uninitialized value (false positive)
pn53x.c:1746:15: warning: Function call argument is an uninitialized value *cycles = __pn53x_get_timer(pnd, pbtTxRaw[szTx + 1]); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
This commit is contained in:
parent
05220537ea
commit
f2c264d4ae
1 changed files with 1 additions and 1 deletions
|
@ -1733,7 +1733,7 @@ pn53x_initiator_transceive_bytes_timed(struct nfc_device *pnd, const uint8_t *pb
|
||||||
if (pnd->bCrc) {
|
if (pnd->bCrc) {
|
||||||
// We've to compute CRC ourselves to know last byte actually sent
|
// We've to compute CRC ourselves to know last byte actually sent
|
||||||
uint8_t *pbtTxRaw;
|
uint8_t *pbtTxRaw;
|
||||||
pbtTxRaw = (uint8_t *) malloc(szTx + 2);
|
pbtTxRaw = (uint8_t *) calloc(szTx + 2, 1);
|
||||||
if (!pbtTxRaw)
|
if (!pbtTxRaw)
|
||||||
return NFC_ESOFT;
|
return NFC_ESOFT;
|
||||||
memcpy(pbtTxRaw, pbtTx, szTx);
|
memcpy(pbtTxRaw, pbtTx, szTx);
|
||||||
|
|
Loading…
Add table
Reference in a new issue