mirror of
https://github.com/RfidResearchGroup/proxmark3.git
synced 2025-08-21 22:03:42 -07:00
maybe proxspace gets happier
This commit is contained in:
parent
38560926df
commit
e3f4012d78
1 changed files with 3 additions and 4 deletions
|
@ -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;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue