util_hash.c: void return value
This commit is contained in:
parent
cb94ffe1c0
commit
30d1d0f607
@ -124,7 +124,7 @@ xbps_file_hash_raw(const char *file)
|
||||
while ((len = read(fd, buf, sizeof(buf))) > 0)
|
||||
SHA256_Update(&sha256, buf, len);
|
||||
SHA256_Final(digest, &sha256);
|
||||
close(fd);
|
||||
(void)close(fd);
|
||||
if(len < 0)
|
||||
return NULL;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user