Fix returned value ((res=f()<0)) => ((res=f())<0); this solves a bug in nfc-relay-picc

This commit is contained in:
Philippe Teuwen 2013-01-22 00:56:34 +01:00
parent 0ac3b26982
commit 5876e33e49
4 changed files with 11 additions and 11 deletions

View file

@ -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;