# stage1: Fix edge case in Union ZigValue generation · gitcafe/zig

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

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

Visibility: public

Requested revision: 44f8e6a534bd2977c741afdbf5ba9df49bde0fd9

Requested commit: 44f8e6a534bd2977c741afdbf5ba9df49bde0fd9

Commit: 44f8e6a534bd2977c741afdbf5ba9df49bde0fd9

Tree: 2d7274179977704d5bd24074b6f9306518da14de

Author: LemonBoy

Committer: Andrew Kelley

## Message

```
stage1: Fix edge case in Union ZigValue generation

Unions that passed the one_possible_value check were incorrectly
generated, none of their internal fields were initialized.

Fixes #6758

```

## Parents

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

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