Fix returned value ((res=f()<0)) => ((res=f())<0); this solves a bug in nfc-relay-picc
This commit is contained in:
parent
0ac3b26982
commit
5876e33e49
4 changed files with 11 additions and 11 deletions
|
|
@ -425,7 +425,7 @@ main(int argc, char *argv[])
|
|||
|
||||
if (!target_only_mode) {
|
||||
// Forward the frame to the original tag
|
||||
if ((res = nfc_initiator_transceive_bytes(pndInitiator, abtCapdu, szCapduLen, abtRapdu, sizeof(abtRapdu), -1) < 0)) {
|
||||
if ((res = nfc_initiator_transceive_bytes(pndInitiator, abtCapdu, szCapduLen, abtRapdu, sizeof(abtRapdu), -1)) < 0) {
|
||||
ret = false;
|
||||
} else {
|
||||
szRapduLen = (size_t) res;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue