lib/util_hash.c: xbps_file_hash: remove unnecessary memset() call.
This commit is contained in:
parent
ef67a79419
commit
febc673f1e
@ -78,7 +78,6 @@ 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