# implement allowzero pointer attribute · gitcafe/zig

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

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

Visibility: public

Requested revision: 5eaead6a56ed95c200e249737c4ecf3c7cacf794

Requested commit: 5eaead6a56ed95c200e249737c4ecf3c7cacf794

Commit: 5eaead6a56ed95c200e249737c4ecf3c7cacf794

Tree: 70fe5c0238d6f1d72fc8504a4aaec710f059db37

Author: Andrew Kelley

Committer: Andrew Kelley

## Message

```
implement allowzero pointer attribute

closes #1953

only needed for freestanding targets.

also adds safety for `@intToPtr` when the address is zero.

```

## Parents

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

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