# Initialize the Stat structure · gitcafe/zig

[View on GitCafe](https://git.cafe/gitcafe/zig/commit/4e399ef62c962d0179f715afa3e50343b2825e7d)

Repository: [gitcafe/zig](https://git.cafe/gitcafe/zig)

Visibility: public

Requested revision: 4e399ef62c962d0179f715afa3e50343b2825e7d

Requested commit: 4e399ef62c962d0179f715afa3e50343b2825e7d

Commit: 4e399ef62c962d0179f715afa3e50343b2825e7d

Tree: 25dada4ecc63986e5a71bdd88ec2e8e52f6f74ef

Author: Frank Denis

Committer: Frank Denis

## Message

```
Initialize the Stat structure

The system `stat` structure includes padding, and, on some
operating systems such as all BSDs, "spare" bytes at the end.

We can't reliably compare two `Stat` values if these are
uninitialized, while being later compared.

This is what was causing the `fstatat` test to fail on FreeBSD
since the update to LLVM 12. It was previously only passing by
accident.

```

## Parents

- [f67e756211b6e69cc8fadbb6b1ec5af1bd5c7049](https://git.cafe/gitcafe/zig/commit/f67e756211b6e69cc8fadbb6b1ec5af1bd5c7049?format=markdown)

[Source at this commit](https://git.cafe/gitcafe/zig/tree/4e399ef62c962d0179f715afa3e50343b2825e7d?format=markdown)
