# AstGen: structInitExpr and arrayInitExpr avoid crash · gitcafe/zig

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

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

Visibility: public

Requested revision: 273da9efd9238e20da1299789537b00de2f0ebd8

Requested commit: 273da9efd9238e20da1299789537b00de2f0ebd8

Commit: 273da9efd9238e20da1299789537b00de2f0ebd8

Tree: 54905594f55be9fd19a179ab1bcaeb1900d02bc1

Author: Andrew Kelley

Committer: Andrew Kelley

## Message

```
AstGen: structInitExpr and arrayInitExpr avoid crash

when an inferred alloc is passed as the result pointer of a block.

```

## Parents

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

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