# Translate-c: Fix a segfault when to many errors are emitted · gitcafe/zig

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

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

Visibility: public

Requested revision: d04c58816d673208aae476e1cc2d223a26604c45

Requested commit: d04c58816d673208aae476e1cc2d223a26604c45

Commit: d04c58816d673208aae476e1cc2d223a26604c45

Tree: 811e4ea21d153843b9916f984c3cb81e1f250b25

Author: Timon Kruiper

Committer: Andrew Kelley

## Message

```
Translate-c: Fix a segfault when to many errors are emitted

This was already fixed when doing `@cImport`, but not yet when
running `zig translate-c`.

```

## Parents

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

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