diff --git a/lib/util_hash.c b/lib/util_hash.c index 09ddf200..777a95e9 100644 --- a/lib/util_hash.c +++ b/lib/util_hash.c @@ -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;