maybe proxspace gets happier

This commit is contained in:
iceman1001 2023-05-24 08:07:35 +02:00
commit e3f4012d78

View file

@ -137,15 +137,14 @@ static char *GenerateFilename(const char *prefix, const char *suffix) {
static int initSectorTable(sector_t **src, size_t items) { static int initSectorTable(sector_t **src, size_t items) {
(*src) = calloc(items, sizeof(sector_t)); (*src) = calloc(items, sizeof(sector_t));
if (*src == NULL) if (*src == NULL)
return PM3_EMALLOC; return PM3_EMALLOC;
// empty e_sector // empty e_sector
for (int i = 0; i < items; ++i) { for (int i = 0; i < items; i++) {
for (int j = 0; j < 2; ++j) { for (int j = 0; j < 2; j++) {
(*src)[i].Key[j] = 0xffffffffffff; (*src)[i].Key[j] = 0xffffffffffff;
(*src)[i].foundKey[j] = false; (*src)[i].foundKey[j] = 0;
} }
} }
return PM3_SUCCESS; return PM3_SUCCESS;