]> cvs.zerfleddert.de Git - proxmark3-svn/blobdiff - client/cmdhfmfhard.c
FIX: Coverity Scan warnings on not using the fread return value.
[proxmark3-svn] / client / cmdhfmfhard.c
index fbfeeb768e38c9174ad3d862f9f7cc32dab1b596..f506f4fda4c3c7687be04b37f029b08a345fedc2 100644 (file)
@@ -626,7 +626,8 @@ static int read_nonce_file(void)
        }
 
        PrintAndLog("Reading nonces from file nonces.bin...");
-       if (fread(read_buf, 1, 6, fnonces) == 0) {
+       size_t bytes_read = fread(read_buf, 1, 6, fnonces);
+       if ( bytes_read == 0) {
                PrintAndLog("File reading error.");
                fclose(fnonces);
                return 1;
Impressum, Datenschutz