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