1
0
mirror of https://github.com/hashcat/hashcat.git synced 2024-11-30 03:48:17 +00:00

try remove warning about unused return value of read

This commit is contained in:
Gabriele Gristina 2019-07-01 17:57:44 +02:00
parent 3161aec3da
commit 4b9fdc6b97

View File

@ -665,9 +665,10 @@ bool hc_fopen (HCFILE *fp, const char *path, char *mode)
{ {
lseek (fd_tmp, 0, SEEK_SET); lseek (fd_tmp, 0, SEEK_SET);
read (fd_tmp, check, sizeof(check)); if (read (fd_tmp, check, sizeof(check)) > 0)
{
if (check[0] == 0x1f && check[1] == 0x8b && check[2] == 0x08) fp->is_gzip = true; if (check[0] == 0x1f && check[1] == 0x8b && check[2] == 0x08) fp->is_gzip = true;
}
close (fd_tmp); close (fd_tmp);
} }