Revert "lib/util_hash.c: xbps_file_hash: remove unnecessary memset() call."
This reverts commit febc673f1e
.
This commit is contained in:
parent
5a7eb2255d
commit
a30623c65c
@ -78,6 +78,7 @@ xbps_file_hash(const char *file)
|
||||
free(buf);
|
||||
return NULL;
|
||||
}
|
||||
memset(&st, 0, sizeof(st));
|
||||
if (fstat(fd, &st) == -1) {
|
||||
(void)close(fd);
|
||||
return NULL;
|
||||
|
Loading…
Reference in New Issue
Block a user