proxmark3
proxmark3 copied to clipboard
cppcheck cmdhfmfhard.c redundant assignment
In cmdhfmfhard.c
if (!initialize) {
uint16_t num_sampled_nonces = resp.oldarg[2];
uint8_t *bufp = resp.data.asBytes;
for (uint16_t i = 0; i < num_sampled_nonces; i += 2) {
Indeed resp is declared but not initialized. Even memsetting it doesn't fix the logic as we're looping on it. I don't know what should be the logic here...
:) can we make a NULL check for it?
Ps. @pwpiwi would be better at it