mirror of
https://github.com/RfidResearchGroup/proxmark3.git
synced 2025-01-05 23:52:27 +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];
|
char outfile[64];
|
||||||
unsigned char *data = NULL;
|
unsigned char *data = NULL;
|
||||||
struct stat filestat;
|
struct stat filestat;
|
||||||
unsigned char *table = NULL;
|
|
||||||
uint64_t numentries = 0;
|
uint64_t numentries = 0;
|
||||||
int index = (int)(long)dd;
|
int index = (int)(long)dd;
|
||||||
int space = 0x100 / NUM_SORT_THREADS;
|
int space = 0x100 / NUM_SORT_THREADS;
|
||||||
|
|
||||||
// create table - 50MB should be enough
|
// create table - 50MB should be enough
|
||||||
table = (unsigned char *)malloc(50UL * 1024UL * 1024UL);
|
unsigned char *table = (unsigned char *)malloc(50UL * 1024UL * 1024UL);
|
||||||
if (!table) {
|
if (!table) {
|
||||||
printf("sorttable: cannot malloc table\n");
|
printf("sorttable: cannot malloc table\n");
|
||||||
exit(1);
|
exit(1);
|
||||||
|
|
Loading…
Reference in a new issue