]> git.zerfleddert.de Git - proxmark3-svn/commitdiff
FIX: GCC 4.8 complains the pointer is set before its used in a call to free(). Doesn...
authoriceman1001 <iceman@iuse.se>
Wed, 13 Jan 2016 12:15:34 +0000 (13:15 +0100)
committericeman1001 <iceman@iuse.se>
Wed, 13 Jan 2016 12:15:34 +0000 (13:15 +0100)
client/cmdlft55xx.c

index 10461754fe11f85af2d7898426e9e140ac650a78..e10b24d054781dafe9c036a0d034c852b56b3cd6 100644 (file)
@@ -1378,7 +1378,7 @@ int CmdT55xxBruteForce(const char *Cmd) {
        char filename[FILE_PATH_SIZE]={0};\r
        int     keycnt = 0;\r
        uint8_t stKeyBlock = 20;\r
-       uint8_t *keyBlock = NULL, *p;\r
+       uint8_t *keyBlock = NULL, *p = NULL;\r
        keyBlock = calloc(stKeyBlock, 6);\r
        if (keyBlock == NULL) return 1;\r
        \r
Impressum, Datenschutz