# zero initialize target · gitcafe/zig

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

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

Visibility: public

Requested revision: 8692c6fc0da831421855c27008dc046dcf59fca7

Requested commit: 8692c6fc0da831421855c27008dc046dcf59fca7

Commit: 8692c6fc0da831421855c27008dc046dcf59fca7

Tree: d042d93769ffce699cdf00a12b2f37d79e16c05d

Author: Andrew Kelley

Committer: Andrew Kelley

## Message

```
zero initialize target

Fixes glibc_version being set to garbage. I've made this mistake
before so this is an attempt to prevent future bugs. Zig doesn't
have zero-initialization, so are we being a hypocrite by using this
C feature? No, because C doesn't have the feature that forces you to
initialize all fields. That would have prevented this bug every single
time.

```

## Parents

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

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