]> git.zerfleddert.de Git - proxmark3-svn/blobdiff - client/cmdhficlass.c
FIX: Coverity scan, complain on z_stream.opaque is not initialized. Google it,says...
[proxmark3-svn] / client / cmdhficlass.c
index cf0128bebfee930f73633589dbff6268fb300642..70c18aba204a518419b3eb8df37633de3a03dc66 100644 (file)
@@ -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;
Impressum, Datenschutz