diff --git a/lib/util_hash.c b/lib/util_hash.c index 0e62d45e..1c1060b9 100644 --- a/lib/util_hash.c +++ b/lib/util_hash.c @@ -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;