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

This commit is contained in:
Juan RP committed 2013-11-18 18:12:58 +01:00
1 parent ef67a79419
commit febc673f1e
1 file changed
-1
-1
View File
@@ -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;