Revert "lib/util_hash.c: xbps_file_hash: remove unnecessary memset() call."

This reverts commit febc673f1e.
This commit is contained in:
Juan RP 2013-11-26 10:40:53 +01:00
parent 5a7eb2255d
commit a30623c65c

View File

@ -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;