]> cvs.zerfleddert.de Git - proxmark3-svn/blobdiff - client/loclass/ikeys.c
FIXED: Merged all Holimans code-review issues which should fix a lot of memoryleaks.
[proxmark3-svn] / client / loclass / ikeys.c
index b0528b5c3ac1c9d105e0c56e84b00e24690f99d4..a55227efd440948152a9e4478ddb97692e7aef92 100644 (file)
@@ -737,16 +737,14 @@ int doTestsWithKnownInputs()
 
 int readKeyFile(uint8_t key[8])
 {
-
        FILE *f;
-
+       int retval = 1;
        f = fopen("iclass_key.bin", "rb");
        if (f)
        {
                if(fread(key, sizeof(key), 1, f) == 1) return 0;
        }
-       return 1;
-
+       return retval;
 }
 
 
Impressum, Datenschutz