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
|
@ -1044,7 +1044,8 @@ int CmdHFiClassCloneTag(const char *Cmd) {
|
|||
// else we have to create a share memory
|
||||
int i;
|
||||
fseek(f,startblock*8,SEEK_SET);
|
||||
if ( fread(tag_data,sizeof(iclass_block_t),endblock - startblock + 1,f) == 0){
|
||||
size_t bytes_read = fread(tag_data,sizeof(iclass_block_t),endblock - startblock + 1,f);
|
||||
if ( bytes_read == 0){
|
||||
PrintAndLog("File reading error.");
|
||||
fclose(f);
|
||||
return 2;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue