From: iceman1001 Date: Wed, 13 Jan 2016 12:15:34 +0000 (+0100) Subject: FIX: GCC 4.8 complains the pointer is set before its used in a call to free(). Doesn... X-Git-Url: https://git.zerfleddert.de/cgi-bin/gitweb.cgi/proxmark3-svn/commitdiff_plain/089f91dc9da296f3dfcd95d01553e5ad7fcff99f FIX: GCC 4.8 complains the pointer is set before its used in a call to free(). Doesn't complain on Mingw, only Ubuntu.15.10 --- diff --git a/client/cmdlft55xx.c b/client/cmdlft55xx.c index 10461754..e10b24d0 100644 --- a/client/cmdlft55xx.c +++ b/client/cmdlft55xx.c @@ -1378,7 +1378,7 @@ int CmdT55xxBruteForce(const char *Cmd) { char filename[FILE_PATH_SIZE]={0}; int keycnt = 0; uint8_t stKeyBlock = 20; - uint8_t *keyBlock = NULL, *p; + uint8_t *keyBlock = NULL, *p = NULL; keyBlock = calloc(stKeyBlock, 6); if (keyBlock == NULL) return 1;