mirror of
https://github.com/RfidResearchGroup/proxmark3.git
synced 2025-01-03 22:53:58 +08:00
cppchecker
This commit is contained in:
parent
dec92755b6
commit
b0b51e4222
1 changed files with 1 additions and 2 deletions
|
@ -375,13 +375,12 @@ static void *sorttable(void *dd) {
|
|||
char outfile[64];
|
||||
unsigned char *data = NULL;
|
||||
struct stat filestat;
|
||||
unsigned char *table = NULL;
|
||||
uint64_t numentries = 0;
|
||||
int index = (int)(long)dd;
|
||||
int space = 0x100 / NUM_SORT_THREADS;
|
||||
|
||||
// create table - 50MB should be enough
|
||||
table = (unsigned char *)malloc(50UL * 1024UL * 1024UL);
|
||||
unsigned char *table = (unsigned char *)malloc(50UL * 1024UL * 1024UL);
|
||||
if (!table) {
|
||||
printf("sorttable: cannot malloc table\n");
|
||||
exit(1);
|
||||
|
|
Loading…
Reference in a new issue