mirror of
https://github.com/hashcat/hashcat.git
synced 2024-11-29 19:38:18 +00:00
try remove warning about unused return value of read
This commit is contained in:
parent
3161aec3da
commit
4b9fdc6b97
@ -665,9 +665,10 @@ bool hc_fopen (HCFILE *fp, const char *path, char *mode)
|
||||
{
|
||||
lseek (fd_tmp, 0, SEEK_SET);
|
||||
|
||||
read (fd_tmp, check, sizeof(check));
|
||||
|
||||
if (check[0] == 0x1f && check[1] == 0x8b && check[2] == 0x08) fp->is_gzip = true;
|
||||
if (read (fd_tmp, check, sizeof(check)) > 0)
|
||||
{
|
||||
if (check[0] == 0x1f && check[1] == 0x8b && check[2] == 0x08) fp->is_gzip = true;
|
||||
}
|
||||
|
||||
close (fd_tmp);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user