mirror of
https://github.com/nfc-tools/libnfc.git
synced 2026-03-13 19:13:44 +00:00
Fix cppcheck warning: The scope of the variable X can be reduced.
This commit is contained in:
@@ -60,7 +60,6 @@ main(int argc, const char *argv[])
|
||||
nfc_device *pnd = NULL;
|
||||
const char *acLibnfcVersion;
|
||||
bool result;
|
||||
int res = 0;
|
||||
|
||||
uint8_t abtRx[PN53x_EXTENDED_FRAME__DATA_MAX_LEN];
|
||||
size_t szRx = sizeof(abtRx);
|
||||
@@ -92,6 +91,7 @@ main(int argc, const char *argv[])
|
||||
}
|
||||
|
||||
for (i = 0; i < szFound; i++) {
|
||||
int res = 0;
|
||||
pnd = nfc_open(context, connstrings[i]);
|
||||
|
||||
if (pnd == NULL) {
|
||||
|
||||
Reference in New Issue
Block a user