fix uninitialized gcc7.5 opensuse warning

This commit is contained in:
iceman1001 2021-06-25 23:04:55 +02:00
commit 93cc64a8e3

View file

@ -571,10 +571,10 @@ int CmdHFTopaz(const char *Cmd) {
int readTopazUid(bool verbose) { int readTopazUid(bool verbose) {
uint8_t atqa[2]; uint8_t atqa[2] = {0};
uint8_t rid_response[8]; uint8_t rid_response[8] = {0};
uint8_t *uid_echo = &rid_response[2]; uint8_t *uid_echo = &rid_response[2];
uint8_t rall_response[124]; uint8_t rall_response[124] = {0};
int status = topaz_select(atqa, sizeof(atqa), rid_response, sizeof(rid_response), verbose); int status = topaz_select(atqa, sizeof(atqa), rid_response, sizeof(rid_response), verbose);
if (status == PM3_ESOFT) { if (status == PM3_ESOFT) {