# Fix warning WasmMut_toC not all control paths return a value \(\#24267\) · gitcafe/zig

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

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

Visibility: public

Requested revision: 0adcfd60f4fcfd01c74a6477cbcef187ce06f533

Requested commit: 0adcfd60f4fcfd01c74a6477cbcef187ce06f533

Commit: 0adcfd60f4fcfd01c74a6477cbcef187ce06f533

Tree: 4c52ba5b7415cc90ada5f9206deea66b725a69b9

Author: Jonathan Marler

Committer: GitHub

## Message

```
Fix warning WasmMut_toC not all control paths return a value (#24267)

* Fix warning WasmMut_toC not all control paths return a value

This is a follow up to https://github.com/ziglang/zig/pull/24206 where
I had previously submitted different mechanisms to fix this warning.
This PR is a suggestion by Alex to return NULL instead and Andrew
confirmed this is his preference.
```

## Parents

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

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