From b0b51e4222eb73050beac7ded715c256c1aa035f Mon Sep 17 00:00:00 2001 From: iceman1001 Date: Tue, 2 Jun 2020 13:05:19 +0200 Subject: [PATCH] cppchecker --- tools/hitag2crack/crack2/ht2crack2buildtable.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/tools/hitag2crack/crack2/ht2crack2buildtable.c b/tools/hitag2crack/crack2/ht2crack2buildtable.c index 01cd0364c..6f8319a02 100644 --- a/tools/hitag2crack/crack2/ht2crack2buildtable.c +++ b/tools/hitag2crack/crack2/ht2crack2buildtable.c @@ -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);