FIX: Coverity Scan warnings on not using the fread return value.
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user