X-Git-Url: http://git.zerfleddert.de/cgi-bin/gitweb.cgi/proxmark3-svn/blobdiff_plain/2ae8a312e058f71d0f02be4f2f9cc6f284ebbf34..3bc3598e880b68870cfcc55fbdda443d77395809:/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; }