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

This commit is contained in:
Juan RP 2013-11-18 18:12:58 +01:00
parent ef67a79419
commit febc673f1e

View File

@ -78,7 +78,6 @@ 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;