# render: fix bug when rendering struct initializer with length 1 · gitcafe/zig

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

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

Visibility: public

Requested revision: e23bc1f76af298e7ba0140e442858c1faa98e379

Requested commit: e23bc1f76af298e7ba0140e442858c1faa98e379

Commit: e23bc1f76af298e7ba0140e442858c1faa98e379

Tree: ae6286a19b8cf027221f47d8fe5349e5861e1e43

Author: Timon Kruiper

Committer: Andrew Kelley

## Message

```
render: fix bug when rendering struct initializer with length 1

This crashed the compiler when running translate-c. See the added test.

```

## Parents

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

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