X-Git-Url: http://git.zerfleddert.de/cgi-bin/gitweb.cgi/proxmark3-svn/blobdiff_plain/2ae8a312e058f71d0f02be4f2f9cc6f284ebbf34..f91f0ebb35c1c131e5e255457212a0784c81dcd6:/client/loclass/ikeys.c diff --git a/client/loclass/ikeys.c b/client/loclass/ikeys.c index b0528b5c..a55227ef 100644 --- a/client/loclass/ikeys.c +++ b/client/loclass/ikeys.c @@ -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; }