master moved from 1e4fe3bd2793 to 1f5e14f86259
2 new revisions:
Revision: a38279793abb
Author: Philippe Teuwen <
yob...@gmail.com>
Date: Fri Feb 7 00:22:27 2014 UTC
Log: cppcheck on nfc-pool: Variable 'res' is assigned a value that is
never...
http://code.google.com/p/libnfc/source/detail?r=a38279793abb
Revision: 1f5e14f86259
Author: Philippe Teuwen <
yob...@gmail.com>
Date: Fri Feb 7 00:29:42 2014 UTC
Log: cppcheck on pn53x.c: Array 'apttTargetTypes' is filled
incompletely
http://code.google.com/p/libnfc/source/detail?r=1f5e14f86259
==============================================================================
Revision: a38279793abb
Author: Philippe Teuwen <
yob...@gmail.com>
Date: Fri Feb 7 00:22:27 2014 UTC
Log: cppcheck on nfc-pool: Variable 'res' is assigned a value that is
never used
http://code.google.com/p/libnfc/source/detail?r=a38279793abb
Modified:
/examples/nfc-poll.c
=======================================
--- /examples/nfc-poll.c Wed Jan 29 10:36:12 2014 UTC
+++ /examples/nfc-poll.c Fri Feb 7 00:22:27 2014 UTC
@@ -150,7 +150,7 @@
}
printf("Waiting for card removing...");
- while (0 == (res = nfc_initiator_target_is_present(pnd, NULL))) {}
+ while (0 == nfc_initiator_target_is_present(pnd, NULL)) {}
nfc_perror(pnd, "nfc_initiator_target_is_present");
printf("done.\n");
==============================================================================
Revision: 1f5e14f86259
Author: Philippe Teuwen <
yob...@gmail.com>
Date: Fri Feb 7 00:29:42 2014 UTC
Log: cppcheck on pn53x.c: Array 'apttTargetTypes' is filled
incompletely
http://code.google.com/p/libnfc/source/detail?r=1f5e14f86259
Modified:
/libnfc/chips/pn53x.c
=======================================
--- /libnfc/chips/pn53x.c Fri Feb 7 00:11:19 2014 UTC
+++ /libnfc/chips/pn53x.c Fri Feb 7 00:29:42 2014 UTC
@@ -1206,7 +1206,7 @@
if (CHIP_DATA(pnd)->type == PN532) {
size_t szTargetTypes = 0;
pn53x_target_type apttTargetTypes[32];
- memset(apttTargetTypes, PTT_UNDEFINED, 32);
+ memset(apttTargetTypes, PTT_UNDEFINED, 32 * sizeof(pn53x_target_type));
for (size_t n = 0; n < szModulations; n++) {
const pn53x_target_type ptt = pn53x_nm_to_ptt(pnmModulations[n]);
if (PTT_UNDEFINED == ptt) {