# std.mem.zeroes: Zero sized structs with uninitialized members \(\#12246\) · gitcafe/zig

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

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

Visibility: public

Requested revision: 18440cb239755c983f672b4902147c12e819e029

Requested commit: 18440cb239755c983f672b4902147c12e819e029

Commit: 18440cb239755c983f672b4902147c12e819e029

Tree: 41c49d99b3fc18ea76d23007cc77a62e15f82a92

Author: N00byEdge

Committer: GitHub

## Message

````
std.mem.zeroes: Zero sized structs with uninitialized members (#12246)

`std.mem.zeroes(struct{handle: void})` Failed with the following error before:
```
/nix/store/l6v4359wc9xrxxmvvp3rynsb5s3d78xf-zig-0.9.1/lib/zig/std/mem.zig:270:42: error: missing field: 'handle'
            if (@sizeOf(T) == 0) return T{};
                                         ^
```
````

## Parents

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

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