mirror of
https://github.com/RfidResearchGroup/proxmark3.git
synced 2025-08-21 13:53:55 -07:00
FIX: Coverity Scan warnings on not using the fread return value.
This commit is contained in:
parent
52cf34c1cc
commit
841d7af0dc
5 changed files with 26 additions and 18 deletions
|
@ -173,7 +173,8 @@ int CmdLFHitagSim(const char *Cmd) {
|
|||
return 1;
|
||||
}
|
||||
tag_mem_supplied = true;
|
||||
if (fread(c.d.asBytes,48,1,pf) == 0) {
|
||||
size_t bytes_read = fread(c.d.asBytes, 48, 1, pf);
|
||||
if ( bytes_read == 0) {
|
||||
PrintAndLog("Error: File reading error");
|
||||
fclose(pf);
|
||||
return 1;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue