fix error: (near initialization for 'keyIndex[0]')

This commit is contained in:
merlokk 2017-10-15 21:37:43 +03:00
commit 00d7a2f115

View file

@ -983,7 +983,7 @@ void MifareChkKeys(uint16_t arg0, uint16_t arg1, uint8_t arg2, uint8_t *datain)
} }
if (multisectorCheck) { if (multisectorCheck) {
TKeyIndex keyIndex = {0}; TKeyIndex keyIndex = {{0}};
uint8_t sectorCnt = blockNo; uint8_t sectorCnt = blockNo;
int res = MifareMultisectorChk(datain, keyCount, sectorCnt, keyType, OLD_MF_DBGLEVEL, &keyIndex); int res = MifareMultisectorChk(datain, keyCount, sectorCnt, keyType, OLD_MF_DBGLEVEL, &keyIndex);